diff gen_x86.c @ 755:7306b3967c51

Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
author Michael Pavone <pavone@retrodev.com>
date Sat, 27 Jun 2015 12:17:18 -0700
parents cfa402c6ced8
children 724bbec47f86
line wrap: on
line diff
--- a/gen_x86.c	Sat Jun 27 11:39:55 2015 -0700
+++ b/gen_x86.c	Sat Jun 27 12:17:18 2015 -0700
@@ -2018,7 +2018,7 @@
 		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 @@
 			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;