Index: test/unittests/wasm/leb-helper-unittest.cc |
diff --git a/test/unittests/wasm/leb-helper-unittest.cc b/test/unittests/wasm/leb-helper-unittest.cc |
index 1ac0478bcb3a15a88f0346301c4d65cd68a35f98..b9759332bbfde4524fd577ea5901416434e9ce07 100644 |
--- a/test/unittests/wasm/leb-helper-unittest.cc |
+++ b/test/unittests/wasm/leb-helper-unittest.cc |
@@ -97,7 +97,7 @@ TEST_F(LEBHelperTest, sizeof_i32v) { |
EXPECT_EQ(LEBHelper::sizeof_##name(val), \ |
static_cast<size_t>(ptr - buffer)); \ |
Decoder decoder(buffer, buffer + kSize); \ |
- int length = 0; \ |
+ unsigned length = 0; \ |
ctype result = decoder.checked_read_##name(buffer, 0, &length); \ |
EXPECT_EQ(val, result); \ |
EXPECT_EQ(LEBHelper::sizeof_##name(val), static_cast<size_t>(length)); \ |