projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9bbf56
)
Rewrite to avoid casts.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:52:39 +0000
(22:52 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:52:39 +0000
(22:52 +0000)
lib/readtokens.c
patch
|
blob
|
history
diff --git
a/lib/readtokens.c
b/lib/readtokens.c
index
438441c
..
2ccf6a9
100644
(file)
--- a/
lib/readtokens.c
+++ b/
lib/readtokens.c
@@
-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. */