From 2a210da0f7db026479b42c87293aa75b719375f3 Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Mon, 15 Jun 2026 02:29:50 -0700 Subject: [PATCH] Add more types to known types for generator. PiperOrigin-RevId: 932327432 Change-Id: Ia62d2679f75d786c868f9d576af40a344b675508 --- wasm/codegen/generators/constants.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wasm/codegen/generators/constants.py b/wasm/codegen/generators/constants.py index 64b030cf..acfcac22 100644 --- a/wasm/codegen/generators/constants.py +++ b/wasm/codegen/generators/constants.py @@ -23,14 +23,20 @@ PRIMITIVE_TYPES: Set[str] = { "double", "float", "int", - "mjtByte", + "int16_t", + "int32_t", + "int8_t", "mjtBool", + "mjtByte", "mjtMeshBuiltin", "mjtNum", "mjtObj", # Adding this to the primitives because it is used as int, "mjtSize", "size_t", + "uint16_t", + "uint32_t", "uint64_t", + "uint8_t", "uintptr_t", "unsigned char", "unsigned int",