aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1997-05-13 19:00:57 +0000
committerFred Fish <fnf@specifix.com>1997-05-13 19:00:57 +0000
commitaf942f1dc2d30bf7acfb221331da57af6f258aeb (patch)
tree13ca27e9d425c356117963a5f5605dbc7a51e70b
parentcd05cc5e45002069e058d7686473be9899c0a142 (diff)
downloadgdb-af942f1dc2d30bf7acfb221331da57af6f258aeb.zip
gdb-af942f1dc2d30bf7acfb221331da57af6f258aeb.tar.gz
gdb-af942f1dc2d30bf7acfb221331da57af6f258aeb.tar.bz2
Fix thinko in previous change.
-rw-r--r--gas/config/tc-tic80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-tic80.c b/gas/config/tc-tic80.c
index 6c1f490..f5b4e79 100644
--- a/gas/config/tc-tic80.c
+++ b/gas/config/tc-tic80.c
@@ -925,7 +925,7 @@ md_apply_fix (fixP, val)
md_number_to_chars (dest, (valueT) val, 4);
break;
case R_MPPCR:
- overflow = (val < 0) ? !(val & 0x8000) : (val & 0x8000);
+ overflow = (val < -65536) || (val > 65532);
if (overflow)
{
as_bad_where (fixP -> fx_file, fixP -> fx_line, "PC relative target out of range");