diff options
author | Ian Lance Taylor <ian@airs.com> | 1992-09-14 03:34:19 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1992-09-14 03:34:19 +0000 |
commit | 987b14913a6cc0c405e8d847fc9f8e6234b8f13f (patch) | |
tree | 9219665a1c595042c00b77c0e0376b79d2df72cf /gas | |
parent | d1d1ab12abc49a31f597ddcfdc8a66177f441c26 (diff) | |
download | gdb-987b14913a6cc0c405e8d847fc9f8e6234b8f13f.zip gdb-987b14913a6cc0c405e8d847fc9f8e6234b8f13f.tar.gz gdb-987b14913a6cc0c405e8d847fc9f8e6234b8f13f.tar.bz2 |
Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
* write.c (fixup_segment): fixed missing parens in expression
checking for byte or word overflow.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/write.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 45fddc4..e831f63 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com) + + * write.c (fixup_segment): fixed missing parens in expression + checking for byte or word overflow. + Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com) * input-scrub.c (input_scrub_push): call input_file_begin, not diff --git a/gas/write.c b/gas/write.c index 150ea09..d7d876d 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1150,9 +1150,9 @@ fixup_segment(fixP, this_segment_type) if (!fixP->fx_bit_fixP) { if ((size==1 && - (add_number& ~0xFF) && (add_number&~0xFF!=(-1&~0xFF))) || + (add_number& ~0xFF) && ((add_number&~0xFF)!=(-1&~0xFF))) || (size==2 && - (add_number& ~0xFFFF) && (add_number&~0xFFFF!=(-1&~0xFFFF)))) { + (add_number& ~0xFFFF) && ((add_number&~0xFFFF)!=(-1&~0xFFFF)))) { as_bad("Value of %d too large for field of %d bytes at 0x%x", add_number, size, fragP->fr_address + where); } /* generic error checking */ |