From f090816a3f47c7bd8282978e6893db977fe91824 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 9 Mar 1996 20:25:29 +0000 Subject: [PATCH] (star_digits_closebracket): Declare formal param, IDX, and local I to be of type size_t (rather than int) to avoid warnings from gcc -Wall. --- src/tr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tr.c b/src/tr.c index 9b6e792..2a97d81 100644 --- 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; -- 2.7.4