From 41427a5cbad6eae33ec644d38227fc7301d7a8c6 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 27 Jun 2015 12:17:18 -0700 Subject: Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings --- gen_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gen_x86.c') diff --git a/gen_x86.c b/gen_x86.c index 97c1f3a..2bec3e8 100644 --- a/gen_x86.c +++ b/gen_x86.c @@ -2018,7 +2018,7 @@ void call_raxfallback(code_info *code, code_ptr fun) disp >>= 8; *(out++) = disp; } else { - mov_ir(code, fun, RAX, SZ_PTR); + mov_ir(code, (int64_t)fun, RAX, SZ_PTR); call_r(code, RAX); } code->cur = out; @@ -2228,7 +2228,7 @@ uint32_t x86_inst_size(code_ptr start) if (*code & REX_QUAD) { op_size = SZ_Q; } - } else if(*code == PRE_2BYTE || PRE_XOP) { + } else if(*code == PRE_2BYTE || *code == PRE_XOP) { prefix = *code; } else { main_op = *code; -- cgit v1.2.3