projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubsan: tc-z80.c:3656 shift exponent 32 is too large
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-z80.c
diff --git
a/gas/config/tc-z80.c
b/gas/config/tc-z80.c
index 45fcd6fbf74b5fb86e238401cfbe79c18e301407..2e17d00552271a6f16189fe9adf697f53b7e384f 100644
(file)
--- a/
gas/config/tc-z80.c
+++ b/
gas/config/tc-z80.c
@@
-3653,7
+3653,7
@@
md_assemble (char *str)
static int
is_overflow (long value, unsigned bitsize)
{
- long fieldmask = (
1UL << bitsize
) - 1;
+ long fieldmask = (
2UL << (bitsize - 1)
) - 1;
long signmask = ~fieldmask;
long a = value & fieldmask;
long ss = a & signmask;
This page took
0.023805 seconds
and
4
git commands to generate.