about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-09-19 13:57:52 +0200
committerserpilliere <devnull@localhost>2011-09-19 13:57:52 +0200
commit27f8f90dc934118eda519188cdc1ff9486468117 (patch)
treed2c8350b12b464070d8820dd6eee2a2676bd4541
parent1563f31dd1ba4670410f14774c151491f6662fdb (diff)
downloadmiasm-27f8f90dc934118eda519188cdc1ff9486468117.tar.gz
miasm-27f8f90dc934118eda519188cdc1ff9486468117.zip
fix bug in sar with tcc (bad int cast)
-rw-r--r--miasm/tools/emul_lib/libcodenat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm/tools/emul_lib/libcodenat.h b/miasm/tools/emul_lib/libcodenat.h
index 9a435635..bb014d90 100644
--- a/miasm/tools/emul_lib/libcodenat.h
+++ b/miasm/tools/emul_lib/libcodenat.h
@@ -394,11 +394,11 @@ uint64_t double_to_mem_64(double d);
 
 
 #define shift_right_arith_08(a, b)\
-	((((char)(a)) >> ((unsigned int)(b)))&0xff)
+	((((char)(a)) >> ((int)(b)))&0xff)
 #define shift_right_arith_16(a, b)\
-	((((short)(a)) >> ((unsigned int)(b)))&0xffff)
+	((((short)(a)) >> ((int)(b)))&0xffff)
 #define shift_right_arith_32(a, b)\
-	((((int)(a)) >> ((unsigned int)(b)))&0xffffffff)
+	((((int)(a)) >> ((int)(b)))&0xffffffff)
 
 
 #define shift_right_logic_08(a, b)\