Index: src/wasm/wasm-objects.h |
diff --git a/src/wasm/wasm-objects.h b/src/wasm/wasm-objects.h |
index 43c5da8544686c3ed91488cd2a42d62650894da3..ffefc2581888d78514e9153132ea5d0240a268c6 100644 |
--- a/src/wasm/wasm-objects.h |
+++ b/src/wasm/wasm-objects.h |
@@ -294,7 +294,7 @@ class WasmCompiledModule : public FixedArray { |
#define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) |
#else |
#define DEBUG_ONLY_TABLE(IGNORE) |
- uint32_t instance_id() const { return -1; } |
+ uint32_t instance_id() const { return static_cast<uint32_t>(-1); } |
#endif |
#define WCM_PROPERTY_TABLE(MACRO) \ |