[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}
This commit is contained in:
zhengxing.li 2016-11-22 22:31:09 -08:00 committed by Commit bot
parent c17e860569
commit 38092c41c2

View File

@ -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);