From: Keir Fraser Date: Tue, 25 May 2010 10:00:55 +0000 (+0100) Subject: libxl: small build fix to pass uint8_t to tolower(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12095 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a1a1b2c95150b9a41657e335600eb92fbe24d732;p=xen.git libxl: small build fix to pass uint8_t to tolower(). Signed-off-by: Christoph Egger --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 5c84d33e1d..76b8b9972f 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1226,7 +1226,7 @@ static int64_t parse_mem_size_kb(char *mem) if (strlen(endptr) > 1) return -1; - switch (tolower(*endptr)) { + switch (tolower((uint8_t)*endptr)) { case 't': kbytes <<= 10; case 'g':