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

Unified Diff: test/cctest/wasm/test-run-wasm-interpreter.cc

Issue 2487673004: [wasm] Fix -Wsign-compare warnings. (Closed)
Patch Set: address comments 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 | « test/cctest/wasm/test-run-wasm-64.cc ('k') | test/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/test-run-wasm-interpreter.cc
diff --git a/test/cctest/wasm/test-run-wasm-interpreter.cc b/test/cctest/wasm/test-run-wasm-interpreter.cc
index e716b29f7d66a180579b6a980544661e448c2c25..47d97f4e48717b7592843520902293e97359b1c0 100644
--- a/test/cctest/wasm/test-run-wasm-interpreter.cc
+++ b/test/cctest/wasm/test-run-wasm-interpreter.cc
@@ -202,7 +202,8 @@ TEST(Breakpoint_I32Add) {
thread->Run(); // run to next breakpoint
// Check the thread stopped at the right pc.
CHECK_EQ(WasmInterpreter::PAUSED, thread->state());
- CHECK_EQ(kLocalsDeclSize + offsets[i], thread->GetBreakpointPc());
+ CHECK_EQ(static_cast<size_t>(kLocalsDeclSize + offsets[i]),
+ thread->GetBreakpointPc());
}
thread->Run(); // run to completion
@@ -280,7 +281,8 @@ TEST(Breakpoint_I32And_disable) {
thread->Run(); // run to next breakpoint
// Check the thread stopped at the right pc.
CHECK_EQ(WasmInterpreter::PAUSED, thread->state());
- CHECK_EQ(kLocalsDeclSize + offsets[0], thread->GetBreakpointPc());
+ CHECK_EQ(static_cast<size_t>(kLocalsDeclSize + offsets[0]),
+ thread->GetBreakpointPc());
}
thread->Run(); // run to completion
« no previous file with comments | « test/cctest/wasm/test-run-wasm-64.cc ('k') | test/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698