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

Unified Diff: test/unittests/wasm/wasm-macro-gen-unittest.cc

Issue 2492793005: [wasm] Fix more -Wsign-compare warnings. (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 | « test/unittests/wasm/module-decoder-unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/wasm/wasm-macro-gen-unittest.cc
diff --git a/test/unittests/wasm/wasm-macro-gen-unittest.cc b/test/unittests/wasm/wasm-macro-gen-unittest.cc
index 5f5b0c146e3810fd22f421daaa128fd895f9334c..d047e040325b429c2c179ef4bfcc9bc55e16217d 100644
--- a/test/unittests/wasm/wasm-macro-gen-unittest.cc
+++ b/test/unittests/wasm/wasm-macro-gen-unittest.cc
@@ -12,10 +12,10 @@ namespace wasm {
class WasmMacroGenTest : public TestWithZone {};
-#define EXPECT_SIZE(size, ...) \
- do { \
- byte code[] = {__VA_ARGS__}; \
- EXPECT_EQ(size, sizeof(code)); \
+#define EXPECT_SIZE(size, ...) \
+ do { \
+ byte code[] = {__VA_ARGS__}; \
+ EXPECT_EQ(static_cast<size_t>(size), sizeof(code)); \
} while (false)
TEST_F(WasmMacroGenTest, Constants) {
« no previous file with comments | « test/unittests/wasm/module-decoder-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698