about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)\