(readtoken): Declare an index to be of type unsigned

to avoid a pedantic warning.
This commit is contained in:
Jim Meyering 2001-12-09 22:39:02 +00:00
parent 923091ff96
commit 5b34b167f9

View File

@ -108,9 +108,10 @@ readtoken (FILE *stream,
if (!same_delimiters)
{
const char *t;
unsigned int j;
saved_delim = delim;
for (i = 0; i < sizeof (isdelim); i++)
isdelim[i] = 0;
for (j = 0; j < sizeof (isdelim); j++)
isdelim[j] = 0;
for (t = delim; *t; t++)
isdelim[(unsigned int) *t] = 1;
}