* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 16:41:03 +0000 (09:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 16:41:03 +0000 (09:41 -0700)
lib-src/ChangeLog
lib-src/etags.c

index cb84766..6c25f58 100644 (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,
index 0c14a0d..6cb321f 100644 (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;