diff options
Diffstat (limited to 'opcodes/vax-dis.c')
-rw-r--r-- | opcodes/vax-dis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/vax-dis.c b/opcodes/vax-dis.c index 3bdfa15..0b33141 100644 --- a/opcodes/vax-dis.c +++ b/opcodes/vax-dis.c @@ -440,7 +440,8 @@ print_insn_vax (bfd_vma memaddr, disassemble_info *info) int offset; FETCH_DATA (info, buffer + 4); - offset = buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0]; + offset = ((unsigned) buffer[3] << 24 | buffer[2] << 16 + | buffer[1] << 8 | buffer[0]); (*info->fprintf_func) (info->stream, ".long 0x%08x", offset); return 4; |