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
This commit is contained in:
Neil Booth 2000-07-06 09:51:57 +00:00 committed by Neil Booth
parent f9721d41cb
commit 09074fda4f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-07-06 Neil Booth <NeilB@earthling.net>
* cpplib.c: (_cpp_parse_assertion): Perform hash lookups
based on full length of predicate.
2000-07-06 Hans-Peter Nilsson <hp@axis.com>
* timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.

View File

@ -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);