Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: src/wasm/ast-decoder.cc

Issue 2531533003: Revert of [base] Define CHECK comparison for signed vs. unsigned (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/log-utils.h ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/log-utils.h ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698