X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Fpj-dis.c;h=62f2a2f670c955a51ef19578e9cab7b1151c4e2a;hb=2480b6fa946bb2d2dc993b1c4a83a8e1258a75e8;hp=eb8cdf93c1d275f1c071dd70fee9477024d03958;hpb=4a422785822ec9302f681c8fbc6ba2cc35231b09;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/pj-dis.c b/opcodes/pj-dis.c index eb8cdf93c1..62f2a2f670 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; }