Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index 798f9d393a5bf10dba8e1c5b5ebb944e1d0f171e..a778ad13beb9e92efce1fdf42fa66fa7e995f1be 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -1851,7 +1851,7 @@ class WasmFullDecoder : public WasmDecoder { |
case kExprSetLocal: { |
LocalIndexOperand operand(this, pc); |
if (assigned->length() > 0 && |
- static_cast<int>(operand.index) < assigned->length()) { |
+ operand.index < static_cast<uint32_t>(assigned->length())) { |
// Unverified code might have an out-of-bounds index. |
assigned->Add(operand.index); |
} |