diff options
author | Richard Earnshaw <rearnsha@arm.com> | 1998-05-18 12:08:10 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-05-18 08:08:10 -0400 |
commit | 069b95ce6dc86b9ef2a8bd3341e420d2f81c6111 (patch) | |
tree | 5f35354a81a415f5a41737f9475a828931e1d95c /gcc/stor-layout.c | |
parent | 80afeb71a9616d7ab6af486d0809952c816342e9 (diff) | |
download | gcc-069b95ce6dc86b9ef2a8bd3341e420d2f81c6111.zip gcc-069b95ce6dc86b9ef2a8bd3341e420d2f81c6111.tar.gz gcc-069b95ce6dc86b9ef2a8bd3341e420d2f81c6111.tar.bz2 |
stor-layout.c (layout_record): Fix off-by-one error when checking length of the TYPE_BINFO vector.
* stor-layout.c (layout_record): Fix off-by-one error when checking
length of the TYPE_BINFO vector.
From-SVN: r19850
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index c5c4d1c..c9fee7b 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -551,7 +551,7 @@ layout_record (rec) /* Record the un-rounded size in the binfo node. But first we check the size of TYPE_BINFO to make sure that BINFO_SIZE is available. */ - if (TYPE_BINFO (rec) && TREE_VEC_LENGTH (TYPE_BINFO (rec)) >= 6) + if (TYPE_BINFO (rec) && TREE_VEC_LENGTH (TYPE_BINFO (rec)) > 6) TYPE_BINFO_SIZE (rec) = TYPE_SIZE (rec); #ifdef ROUND_TYPE_SIZE |