Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index db002970f4924844283ebd469d2e9f9386952c00..a869206e5be5f49aa7e95b6cb50bafa0ba67d15c 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -88,7 +88,7 @@ |
} vals; // Either multiple values or a single value. |
Value& first() { |
- DCHECK_GT(arity, 0); |
+ DCHECK_GT(arity, 0u); |
return arity == 1 ? vals.first : vals.array[0]; |
} |
}; |
@@ -577,7 +577,7 @@ |
// Decodes the locals declarations, if any, populating {local_type_vec_}. |
void DecodeLocalDecls() { |
- DCHECK_EQ(0, local_type_vec_.size()); |
+ DCHECK_EQ(0u, local_type_vec_.size()); |
// Initialize {local_type_vec} from signature. |
if (sig_) { |
local_type_vec_.reserve(sig_->parameter_count()); |
@@ -1443,7 +1443,7 @@ |
Value val = {pc_, nullptr, kAstStmt}; |
return val; |
} else { |
- DCHECK_LE(stack_depth, stack_.size()); |
+ DCHECK_LE(stack_depth, static_cast<int>(stack_.size())); |
Value val = Pop(); |
stack_.resize(stack_depth); |
return val; |