Fix warning 'array subscript of type char'

This commit is contained in:
sin
2014-09-02 12:45:39 +01:00
parent 0cbafaecb6
commit b712ef44ad
3 changed files with 8 additions and 6 deletions

2
sort.c
View File

@@ -172,7 +172,7 @@ linecmp(const char **a, const char **b)
static int
parse_flags(char **s, int *flags, int bflag)
{
while(isalpha(**s))
while(isalpha((int)**s))
switch(*((*s)++)) {
case 'b':
*flags |= bflag;