diff options
| author | Peter LaFosse <peter@vector35.com> | 2022-11-11 09:04:04 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-11-11 09:04:04 -0500 |
| commit | 772ab3ced92833a271db5ba05cdcfbf83b9f1880 (patch) | |
| tree | 4fb7ff5a007b6a0f3c10704ac76c64fc267c67f9 /python | |
| parent | c47424d39b9b2f782adc1abf2e2e9090fc2ec4e6 (diff) | |
Fix some inconsistencies in python bindings between clang and core type parsers
Diffstat (limited to 'python')
| -rw-r--r-- | python/generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/generator.cpp b/python/generator.cpp index 5170a0c7..9dfd4f9e 100644 --- a/python/generator.cpp +++ b/python/generator.cpp @@ -340,7 +340,7 @@ int main(int argc, char* argv[]) fprintf(enums, "\n\nclass %s(enum.IntEnum):\n", name.c_str()); for (auto& j : i.second->GetEnumeration()->GetMembers()) { - fprintf(enums, "\t%s = %" PRId64 "\n", j.name.c_str(), j.value); + fprintf(enums, "\t%s = %" PRId32 "\n", j.name.c_str(), (int32_t)j.value); } } else if ((i.second->GetClass() == BoolTypeClass) || (i.second->GetClass() == IntegerTypeClass) |
