mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-27 10:33:29 +08:00
(readtoken): Declare an index to be of type unsigned
to avoid a pedantic warning.
This commit is contained in:
parent
923091ff96
commit
5b34b167f9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user