| Index: tools/json_schema_compiler/h_generator.py
|
| diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py
|
| index c64241cd62d6d66b46230ee62cf84867f0432e08..80ef1cd7631eee92f0a6a7eb68c0e89229f53ab4 100644
|
| --- a/tools/json_schema_compiler/h_generator.py
|
| +++ b/tools/json_schema_compiler/h_generator.py
|
| @@ -141,7 +141,7 @@ class _Generator(object):
|
| """Generate a code object with the declaration of a C++ enum.
|
| """
|
| c = Code()
|
| - c.Sblock('enum %s {' % enum_name)
|
| + c.Sblock('enum %s : int {' % enum_name)
|
| c.Append(self._type_helper.GetEnumNoneValue(type_) + ',')
|
| for value in type_.enum_values:
|
| current_enum_string = self._type_helper.GetEnumValue(type_, value)
|
|
|