X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Fpj-dis.c;h=abac01ea0f503cc4a5a909dfad8ddb6fceda2615;hb=58920b5be048726fca38e4e6ddcaa02ae6d9c1b8;hp=eb8cdf93c1d275f1c071dd70fee9477024d03958;hpb=827041555ac443bd57340060f3e034fd7b199dd8;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/pj-dis.c b/opcodes/pj-dis.c index eb8cdf93c1..abac01ea0f 100644 --- a/opcodes/pj-dis.c +++ b/opcodes/pj-dis.c @@ -1,5 +1,5 @@ /* pj-dis.c -- Disassemble picoJava instructions. - Copyright (C) 1999-2019 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. Contributed by Steve Chamberlain, of Transmeta (sac@pobox.com). This file is part of the GNU opcodes library. @@ -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; }