From cc4e9ee5b65e5f35b7517e19dce5a5c62e0b2250 Mon Sep 17 00:00:00 2001 From: crimsonwoods Date: Thu, 21 Mar 2013 22:58:33 +0900 Subject: fix the type of value that is returned by bit-shift expression. --- src/opcode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/opcode.h b/src/opcode.h index 7c2ec204d..6b2288d48 100644 --- a/src/opcode.h +++ b/src/opcode.h @@ -20,17 +20,17 @@ #define GETARG_C(i) ((int)((((mrb_code)(i)) >> 7) & 0x7f)) #define GETARG_Bx(i) ((int)((((mrb_code)(i)) >> 7) & 0xffff)) #define GETARG_sBx(i) ((int)(GETARG_Bx(i)-MAXARG_sBx)) -#define GETARG_Ax(i) ((int)((((mrb_code)(i)) >> 7) & 0x1ffffff)) +#define GETARG_Ax(i) ((int32_t)((((mrb_code)(i)) >> 7) & 0x1ffffff)) #define GETARG_UNPACK_b(i,n1,n2) ((int)((((mrb_code)(i)) >> (7+n2)) & (((1<> 7) & (((1<