Index: third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/enum_declaration.tmpl |
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/enum_declaration.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/enum_declaration.tmpl |
index 86c85d7d4afd8d6827ad027af16b2864b064e14b..d212e8bacd5acdee30ecada49da0fa8c6a9d33ef 100644 |
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/enum_declaration.tmpl |
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/enum_declaration.tmpl |
@@ -1,4 +1,4 @@ |
-enum {{enum.name}} { |
+enum {{enum.name}} : int32_t { |
{%- for field in enum.fields %} |
{%- if field.value %} |
{{enum.name|to_all_caps}}_{{field.name}} = {{field.value|expression_to_text}}, |