summaryrefslogtreecommitdiff
path: root/gen_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-06-27 12:17:18 -0700
committerMichael Pavone <pavone@retrodev.com>2015-06-27 12:17:18 -0700
commit41427a5cbad6eae33ec644d38227fc7301d7a8c6 (patch)
treeef4faaa1184dc182967110397a05bd06d0b3ed9b /gen_x86.c
parent0ce892b31ad6767fc1658d47418b9f7d14faab05 (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.c4
1 files changed, 2 insertions, 2 deletions
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;