From d9d08379df84ca530267c45565cf6b3e2681212a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 13 Apr 1997 15:20:03 -0400 Subject: (layout_record, PCC_BITFIELD_TYPE_MATTERS): Fix sign bug in last change. From-SVN: r13892 --- gcc/stor-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 98f5596..e55961a 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; } -- cgit v1.1