mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Rewrite to avoid casts.
This commit is contained in:
1 parent
f9bbf56c51
commit
7fed0a985b
1 file changed
+4
-1
+4
-1
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user