summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/cbfstool/cbfstool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 5d87c9f0d3..58f801790e 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -1219,10 +1219,10 @@ int main(int argc, char **argv)
break;
case 's':
param.size = strtoul(optarg, &suffix, 0);
- if (tolower(suffix[0])=='k') {
+ if (tolower((int)suffix[0])=='k') {
param.size *= 1024;
}
- if (tolower(suffix[0])=='m') {
+ if (tolower((int)suffix[0])=='m') {
param.size *= 1024 * 1024;
}
break;