Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
authorIan Lance Taylor <ian@airs.com>
Mon, 14 Sep 1992 03:34:19 +0000 (03:34 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 14 Sep 1992 03:34:19 +0000 (03:34 +0000)
* write.c (fixup_segment): fixed missing parens in expression
checking for byte or word overflow.

gas/ChangeLog
gas/write.c

index 45fddc4be861f217b4a92783d432cc7406bad226..e831f63d3805796121a8ead747efc288179ff0b4 100644 (file)
@@ -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
index 150ea099f91666e04eef00e869f09b581169f99f..d7d876d76875069381427272b8732497292426da 100644 (file)
@@ -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 */