diff options
Diffstat (limited to 'gas/config/tc-sh64.c')
-rw-r--r-- | gas/config/tc-sh64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c index 780052b..2c0bcde 100644 --- a/gas/config/tc-sh64.c +++ b/gas/config/tc-sh64.c @@ -2020,7 +2020,7 @@ shmedia_md_estimate_size_before_relax (fragS *fragP, offsetT value = fragP->fr_offset + (fragP->fr_symbol == NULL ? 0 : S_GET_VALUE (fragP->fr_symbol)); - if (value >= ((offsetT) -1 << 15) && value < ((offsetT) 1 << 15)) + if (value >= (-((offsetT) 1 << 15)) && value < ((offsetT) 1 << 15)) { /* Fits in 16-bit signed number. */ int what = GET_WHAT (fragP->fr_subtype); |