Index: test/unittests/wasm/wasm-macro-gen-unittest.cc |
diff --git a/test/unittests/wasm/wasm-macro-gen-unittest.cc b/test/unittests/wasm/wasm-macro-gen-unittest.cc |
index 5f5b0c146e3810fd22f421daaa128fd895f9334c..d047e040325b429c2c179ef4bfcc9bc55e16217d 100644 |
--- a/test/unittests/wasm/wasm-macro-gen-unittest.cc |
+++ b/test/unittests/wasm/wasm-macro-gen-unittest.cc |
@@ -12,10 +12,10 @@ namespace wasm { |
class WasmMacroGenTest : public TestWithZone {}; |
-#define EXPECT_SIZE(size, ...) \ |
- do { \ |
- byte code[] = {__VA_ARGS__}; \ |
- EXPECT_EQ(size, sizeof(code)); \ |
+#define EXPECT_SIZE(size, ...) \ |
+ do { \ |
+ byte code[] = {__VA_ARGS__}; \ |
+ EXPECT_EQ(static_cast<size_t>(size), sizeof(code)); \ |
} while (false) |
TEST_F(WasmMacroGenTest, Constants) { |