diff options
Diffstat (limited to 'gas/config/tc-z80.c')
-rw-r--r-- | gas/config/tc-z80.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c index 45fcd6f..2e17d00 100644 --- 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; |