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

gas/config/ChangeLog
gas/config/obj-coffbfd.c

index 9cb2c52936936cd2188ed50244922be151ef87f8..f8adc0f9a6985180526bb16150fc63d4bde7811e 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep 13 20:29:39 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * obj-coffbfd.c (fixup_segment): fixed missing parens in
+       expression checking for byte or word overflow.
+
 Fri Sep 11 10:21:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
 
        Support for i386 coff
index dd194bb6f1bcaa5804cb3d09a49d0a12cb17288b..1f59b558ccb32718f829db90d62212737ef3af3c 100644 (file)
@@ -2256,9 +2256,9 @@ segT              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 */