OSDN Git Service

(layout_record, PCC_BITFIELD_TYPE_MATTERS): Fix sign bug in last change.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Apr 1997 19:20:03 +0000 (19:20 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Apr 1997 19:20:03 +0000 (19:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13892 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/stor-layout.c

index 98f5596..e55961a 100644 (file)
@@ -440,7 +440,7 @@ layout_record (rec)
 
          /* A bit field may not span more units of alignment of its type
             than its type itself.  Advance to next boundary if necessary.  */
-         if ((const_size / type_align - (const_size + field_size) / type_align)
+         if (((const_size + field_size) / type_align - const_size / type_align)
              > TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (field))) / type_align)
            const_size = CEIL (const_size, type_align) * type_align;
        }