diff options
author | Neil Booth <neilb@earthling.net> | 2000-07-06 09:51:57 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-07-06 09:51:57 +0000 |
commit | 09074fda4ff8ce7c743c42dea2d22d9f54de35f8 (patch) | |
tree | 56576d7c711acae83fe6853e42b5bee15e58494f /gcc/cpplib.c | |
parent | f9721d41cbdcf8604ad0983ee2f94cc60efbeeab (diff) | |
download | gcc-09074fda4ff8ce7c743c42dea2d22d9f54de35f8.zip gcc-09074fda4ff8ce7c743c42dea2d22d9f54de35f8.tar.gz gcc-09074fda4ff8ce7c743c42dea2d22d9f54de35f8.tar.bz2 |
cpplib.c: (_cpp_parse_assertion): Perform hash lookups based on full length of predicate.
* cpplib.c: (_cpp_parse_assertion): Perform hash lookups
based on full length of predicate.
From-SVN: r34885
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index b0008af..05d3d87 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1328,7 +1328,7 @@ _cpp_parse_assertion (pfile, answerp) /* Prefix '#' to get it out of macro namespace. */ sym[0] = '#'; memcpy (sym + 1, predicate->val.name.text, len); - return cpp_lookup (pfile, sym, len); + return cpp_lookup (pfile, sym, len + 1); error: FREE_ANSWER (answer); |