diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2015-09-15 17:37:14 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-10-23 01:07:01 +0200 |
commit | 3a043c47a921ff3b9d8d3e76ff0f157863a7cdf9 (patch) | |
tree | 8effb6b554ec0bd8ff5315cc944a4c7abc7009f5 /util | |
parent | 8193b068d49478e036c0d2ed3e3f717d767eedde (diff) |
cbfstool: Fix tolower() calls on Cygwin
Cygwin complains:
cbfstool.c: 1075:5 error: array subscript has type 'char' [-Werror=char-subscripts]
so add an explicit cast.
Change-Id: Ie89153518d6af2bacce3f48fc7952fee17a688dd
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/11666
Tested-by: build bot (Jenkins)
Reviewed-by: Zheng Bao <zheng.bao@amd.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cbfstool/cbfstool.c | 4 |
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; |