mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-21 15:43:30 +08:00
Rewrite to avoid casts.
This commit is contained in:
parent
f9bbf56c51
commit
7fed0a985b
@ -96,7 +96,10 @@ readtoken (FILE *stream,
|
||||
saved_delim = delim;
|
||||
memset (isdelim, 0, sizeof isdelim);
|
||||
for (j = 0; j < n_delim; j++)
|
||||
isdelim[(unsigned char) delim[j]] = 1;
|
||||
{
|
||||
unsigned char ch = delim[j];
|
||||
isdelim[ch] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* FIXME: don't fool with this caching. Use strchr instead. */
|
||||
|
Loading…
Reference in New Issue
Block a user