Index: src/wasm/wasm-interpreter.cc |
diff --git a/src/wasm/wasm-interpreter.cc b/src/wasm/wasm-interpreter.cc |
index fff15c3b3a66ae00175400293ebe09772e68e618..6e049ffd2558c984b28cd4885826ea913ebf8d00 100644 |
--- a/src/wasm/wasm-interpreter.cc |
+++ b/src/wasm/wasm-interpreter.cc |
@@ -1173,7 +1173,7 @@ |
} |
bool DoReturn(InterpreterCode** code, pc_t* pc, pc_t* limit, size_t arity) { |
- DCHECK_GT(frames_.size(), 0); |
+ DCHECK_GT(frames_.size(), 0u); |
// Pop all blocks for this frame. |
while (!blocks_.empty() && blocks_.back().fp == frames_.size()) { |
blocks_.pop_back(); |
@@ -1680,8 +1680,8 @@ |
} |
WasmVal Pop() { |
- DCHECK_GT(stack_.size(), 0); |
- DCHECK_GT(frames_.size(), 0); |
+ DCHECK_GT(stack_.size(), 0u); |
+ DCHECK_GT(frames_.size(), 0u); |
DCHECK_GT(stack_.size(), frames_.back().llimit()); // can't pop into locals |
WasmVal val = stack_.back(); |
stack_.pop_back(); |
@@ -1689,8 +1689,8 @@ |
} |
void PopN(int n) { |
- DCHECK_GE(stack_.size(), n); |
- DCHECK_GT(frames_.size(), 0); |
+ DCHECK_GE(stack_.size(), static_cast<size_t>(n)); |
+ DCHECK_GT(frames_.size(), 0u); |
size_t nsize = stack_.size() - n; |
DCHECK_GE(nsize, frames_.back().llimit()); // can't pop into locals |
stack_.resize(nsize); |
@@ -1698,7 +1698,7 @@ |
WasmVal PopArity(size_t arity) { |
if (arity == 0) return WasmVal(); |
- CHECK_EQ(1, arity); |
+ CHECK_EQ(1u, arity); |
return Pop(); |
} |