aboutsummaryrefslogtreecommitdiff
path: root/opcodes/pj-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/pj-dis.c')
-rw-r--r--opcodes/pj-dis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/pj-dis.c b/opcodes/pj-dis.c
index eb8cdf9..62f2a2f 100644
--- a/opcodes/pj-dis.c
+++ b/opcodes/pj-dis.c
@@ -32,10 +32,10 @@ get_int (bfd_vma memaddr, int *iptr, struct disassemble_info *info)
unsigned char ival[4];
int status = info->read_memory_func (memaddr, ival, 4, info);
- *iptr = (ival[0] << 24)
- | (ival[1] << 16)
- | (ival[2] << 8)
- | (ival[3] << 0);
+ *iptr = (((unsigned) ival[0] << 24)
+ | (ival[1] << 16)
+ | (ival[2] << 8)
+ | (ival[3] << 0));
return status;
}