projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes a snafu checking the size of a 20-bit immediate.
[platform/upstream/binutils.git]
/
gas
/
config
/
tc-msp430.c
diff --git
a/gas/config/tc-msp430.c
b/gas/config/tc-msp430.c
index
1398b8c
..
25ec0ee
100644
(file)
--- a/
gas/config/tc-msp430.c
+++ b/
gas/config/tc-msp430.c
@@
-1132,7
+1132,7
@@
msp430_srcoperand (struct msp430_operand_s * op,
if (allow_20bit_values)
{
- if (op->exp.X_add_number > 0xfffff || op->exp.X_add_number < -
(0x7ffff)
)
+ if (op->exp.X_add_number > 0xfffff || op->exp.X_add_number < -
524288
)
{
as_bad (_("value 0x%x out of extended range."), x);
return 1;