diff options
-rw-r--r-- | gas/config/tc-tic80.c | 2 |
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"); |