projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More signed overflow fixes
[deliverable/binutils-gdb.git]
/
opcodes
/
pj-dis.c
diff --git
a/opcodes/pj-dis.c
b/opcodes/pj-dis.c
index eb8cdf93c1d275f1c071dd70fee9477024d03958..62f2a2f670c955a51ef19578e9cab7b1151c4e2a 100644
(file)
--- 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);
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;
}
return status;
}
This page took
0.032335 seconds
and
4
git commands to generate.