summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-04-13 15:20:03 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-04-13 15:20:03 -0400
commitd9d08379df84ca530267c45565cf6b3e2681212a (patch)
treebdb7421424b225b2cb6a8d8f0fbd16009d1bdaff
parent3879920c646985bca78fc35a716c600a640173b6 (diff)
downloadgcc-d9d08379df84ca530267c45565cf6b3e2681212a.tar.gz
(layout_record, PCC_BITFIELD_TYPE_MATTERS): Fix sign bug in last change.
From-SVN: r13892
-rw-r--r--gcc/stor-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 98f5596bf6c..e55961a9f51 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -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;
}