Commit 38092c41 authored by zhengxing.li's avatar zhengxing.li Committed by Commit bot

[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}
parent c17e8605
......@@ -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<int32_t> runnable(isolate, code, &csig);
int32_t ret_value = runnable.Call();
CHECK_NE(ret_value, 0xdeadbeef);
CHECK_NE(ret_value, bit_cast<int32_t>(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<int32_t>(0xdeadbeef));
#ifdef OBJECT_PRINT
code->Print(os);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment