From 38092c41c27af5fcd2988adb299cc3a76fcbbf75 Mon Sep 17 00:00:00 2001 From: "zhengxing.li" Date: Tue, 22 Nov 2016 22:31:09 -0800 Subject: [PATCH] [X87][test]: Fixing -Wsign-compare compilation error for x87 test case. BUG= Review-Url: https://codereview.chromium.org/2513413006 Cr-Commit-Position: refs/heads/master@{#41202} --- test/cctest/test-run-wasm-relocation-x87.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cctest/test-run-wasm-relocation-x87.cc b/test/cctest/test-run-wasm-relocation-x87.cc index c66fb77309..17b340ac9e 100644 --- a/test/cctest/test-run-wasm-relocation-x87.cc +++ b/test/cctest/test-run-wasm-relocation-x87.cc @@ -56,7 +56,7 @@ TEST(WasmRelocationX87MemoryReference) { disasm::Disassembler::Disassemble(stdout, begin, end); #endif - size_t offset = 1234; + int offset = 1234; // Relocating references by offset int mode_mask = (1 << RelocInfo::WASM_MEMORY_REFERENCE); @@ -114,7 +114,7 @@ TEST(WasmRelocationX87MemorySizeReference) { CodeRunner runnable(isolate, code, &csig); int32_t ret_value = runnable.Call(); - CHECK_NE(ret_value, 0xdeadbeef); + CHECK_NE(ret_value, bit_cast(0xdeadbeef)); #ifdef OBJECT_PRINT OFStream os(stdout); @@ -138,7 +138,7 @@ TEST(WasmRelocationX87MemorySizeReference) { } ret_value = runnable.Call(); - CHECK_NE(ret_value, 0xdeadbeef); + CHECK_NE(ret_value, bit_cast(0xdeadbeef)); #ifdef OBJECT_PRINT code->Print(os);