X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fi860-dis.c;h=ba183ab3f70132f723c7653eda95cec116e7dc4c;hb=139368c9f374b56c00887e7587910ecd316da04c;hp=d969200a49d12097172520a1970c1b369a6e494b;hpb=9d751335284aad9de560434108a112f357f2e304;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/i860-dis.c b/opcodes/i860-dis.c index d969200a49..ba183ab3f7 100644 --- a/opcodes/i860-dis.c +++ b/opcodes/i860-dis.c @@ -44,7 +44,7 @@ static const char *const crnames[] = /* Prototypes. */ static int sign_ext PARAMS((unsigned int, int)); -static void print_br_address PARAMS((disassemble_info *, bfd_vma, int)); +static void print_br_address PARAMS((disassemble_info *, bfd_vma, long)); /* True if opcode is xor, xorh, and, andh, or, orh, andnot, andnoth. */ @@ -75,10 +75,10 @@ static void print_br_address (info, memaddr, val) disassemble_info *info; bfd_vma memaddr; - int val; + long val; { - int adj = memaddr + 4 + (val << 2); + long adj = (long)memaddr + 4 + (val << 2); (*info->fprintf_func) (info->stream, "0x%08x", adj);