From 772ab3ced92833a271db5ba05cdcfbf83b9f1880 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 11 Nov 2022 09:04:04 -0500 Subject: Fix some inconsistencies in python bindings between clang and core type parsers --- python/generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.3.1