summaryrefslogtreecommitdiff
path: root/python/generator.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-11-11 09:04:04 -0500
committerPeter LaFosse <peter@vector35.com>2022-11-11 09:04:04 -0500
commit772ab3ced92833a271db5ba05cdcfbf83b9f1880 (patch)
tree4fb7ff5a007b6a0f3c10704ac76c64fc267c67f9 /python/generator.cpp
parentc47424d39b9b2f782adc1abf2e2e9090fc2ec4e6 (diff)
Fix some inconsistencies in python bindings between clang and core type parsers
Diffstat (limited to 'python/generator.cpp')
-rw-r--r--python/generator.cpp2
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)