diff options
Diffstat (limited to 'opcodes/m32r-asm.c')
-rw-r--r-- | opcodes/m32r-asm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c index 8f73dc5..0531c64 100644 --- a/opcodes/m32r-asm.c +++ b/opcodes/m32r-asm.c @@ -394,21 +394,21 @@ m32r_cgen_insert_operand (opindex, fields, buffer, pc) case M32R_OPERAND_DISP8 : { long value = fields->f_disp8; - value = ((((value) - (((pc) & (-4))))) >> (2)); + value = ((int) (((value) - (((pc) & (-4))))) >> (2)); errmsg = insert_normal (value, 0|(1<<CGEN_OPERAND_RELAX)|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 8, 8, CGEN_FIELDS_BITSIZE (fields), buffer); } break; case M32R_OPERAND_DISP16 : { long value = fields->f_disp16; - value = ((((value) - (pc))) >> (2)); + value = ((int) (((value) - (pc))) >> (2)); errmsg = insert_normal (value, 0|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 16, 16, CGEN_FIELDS_BITSIZE (fields), buffer); } break; case M32R_OPERAND_DISP24 : { long value = fields->f_disp24; - value = ((((value) - (pc))) >> (2)); + value = ((int) (((value) - (pc))) >> (2)); errmsg = insert_normal (value, 0|(1<<CGEN_OPERAND_RELAX)|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 8, 24, CGEN_FIELDS_BITSIZE (fields), buffer); } break; |