libxl: small build fix to pass uint8_t to tolower().
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 25 May 2010 10:00:55 +0000 (11:00 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 25 May 2010 10:00:55 +0000 (11:00 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/libxl/xl_cmdimpl.c

index 5c84d33e1d06c08ffaf4adf2a2eadc9bad062c31..76b8b9972fc5b19d944427f8be410d258e57d20d 100644 (file)
@@ -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':