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

View File

@@ -41,7 +41,7 @@ main(int argc, char *argv[])
size = strtoull(tmp, &end, 10);
if(*end == '\0')
break;
switch(toupper(*end)) {
switch(toupper((int)*end)) {
case 'K':
scale = 1024;
break;