From: Jim Meyering Date: Tue, 14 Jan 2003 14:15:37 +0000 (+0000) Subject: (readtoken): Cast character to 'unsigned char', not 'unsigned int'. X-Git-Tag: v4.5.5~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e87cb139ea505c9f52f3f423a6787977461a5b7;p=thirdparty%2Fcoreutils.git (readtoken): Cast character to 'unsigned char', not 'unsigned int'. --- diff --git a/lib/readtokens.c b/lib/readtokens.c index 8ae1e070a2..74585a5869 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;