(star_digits_closebracket): Declare formal param, IDX, and local I to
authorJim Meyering <jim@meyering.net>
Sat, 9 Mar 1996 20:25:29 +0000 (20:25 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 9 Mar 1996 20:25:29 +0000 (20:25 +0000)
be of type size_t (rather than int) to avoid warnings from gcc -Wall.

src/tr.c

index 9b6e792..2a97d81 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -966,9 +966,9 @@ find_bracketed_repeat (const struct E_string *es, size_t start_idx,
    the `]' must not be escaped.  */
 
 static int
-star_digits_closebracket (const struct E_string *es, int idx)
+star_digits_closebracket (const struct E_string *es, size_t idx)
 {
-  int i;
+  size_t i;
 
   if (!ES_MATCH (es, idx, '*'))
     return 0;