diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-06-27 12:17:18 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-06-27 12:17:18 -0700 |
commit | 41427a5cbad6eae33ec644d38227fc7301d7a8c6 (patch) | |
tree | ef4faaa1184dc182967110397a05bd06d0b3ed9b /gen_x86.c | |
parent | 0ce892b31ad6767fc1658d47418b9f7d14faab05 (diff) |
Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
Diffstat (limited to 'gen_x86.c')
-rw-r--r-- | gen_x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |