diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-14 14:15:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-14 14:15:37 +0000 |
commit | 0e87cb139ea505c9f52f3f423a6787977461a5b7 (patch) | |
tree | e77a736cee75a232152da257da97f4b5f4c67cad /lib | |
parent | ff0e20e30e207a331841ff232b18a5ac7579771d (diff) | |
download | coreutils-0e87cb139ea505c9f52f3f423a6787977461a5b7.tar.xz |
(readtoken): Cast character to 'unsigned char', not 'unsigned int'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/readtokens.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readtokens.c b/lib/readtokens.c index 8ae1e070a..74585a586 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -1,5 +1,5 @@ /* readtokens.c -- Functions for reading tokens from an input stream. - Copyright (C) 1990-1991, 1999, 2001 Jim Meyering. + Copyright (C) 1990-1991, 1999, 2001, 2003 Jim Meyering. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -113,7 +113,7 @@ readtoken (FILE *stream, for (j = 0; j < sizeof (isdelim); j++) isdelim[j] = 0; for (t = delim; *t; t++) - isdelim[(unsigned int) *t] = 1; + isdelim[(unsigned char) *t] = 1; } p = tokenbuffer->buffer; |