1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.

This commit is contained in:
Paul Eggert 2011-03-21 09:41:03 -07:00
parent 3ef271f27f
commit 58cb46fbf4
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2011-03-21 Paul Eggert <eggert@cs.ucla.edu>
* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.
etags: In Prolog functions, don't assume int fits in size_t.
This avoids a warning with gcc -Wstrict-overflow.
* etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,

View File

@ -4198,7 +4198,7 @@ Ada_funcs (FILE *inf)
/* Skip a string i.e. "abcd". */
if (inquote || (*dbp == '"'))
{
dbp = etags_strchr ((inquote) ? dbp : dbp+1, '"');
dbp = etags_strchr (dbp + !inquote, '"');
if (dbp != NULL)
{
inquote = FALSE;