diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-13 22:27:34 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-13 22:27:34 +0000 |
commit | a63cc789967a9d5cdda5f0c8a41e2adcdec76745 (patch) | |
tree | 6d418190a24e3eadbc7fc2c67b93b87d2442c048 | |
parent | f0e3b5d9e0630f2f10dbc22269c7d7be3e442d05 (diff) | |
download | gcc-a63cc789967a9d5cdda5f0c8a41e2adcdec76745.tar.gz |
* search.c (my_tree_cons): The bitfield is at index 2.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21117 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/search.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 199f0900249..f6a71ddaef2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 13 23:25:28 1998 Martin von Lvwis <loewis@informatik.hu-berlin.de> + + * search.c (my_tree_cons): The bitfield is at index 2. + Mon Jul 13 17:21:01 1998 Nick Clifton <nickc@cygnus.com> * lang-options.h: Format changed to work with new --help support diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 2e71de303a3..b58c61fab64 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -266,7 +266,7 @@ my_tree_cons (purpose, value, chain) /* The type of the last on the LHS of this statement must be a pointer to the same type as the bitfields in struct tree_common. Otherwise we may write beyond our intended area. */ - ((unsigned *)p)[3] = 0; + ((unsigned *)p)[2] = 0; TREE_SET_CODE (p, TREE_LIST); TREE_PURPOSE (p) = purpose; TREE_VALUE (p) = value; |