diff options
Diffstat (limited to 'python/generator.cpp')
| -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) |
