From b29bbb693931586dc909aa1e76c29d69d3d026ac Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Thu, 22 Jul 2010 17:24:45 +0000 Subject: [PATCH] Kludgily use a few unsigned chars in uxutil.c for tolower &c. --- src/microcode/uxutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microcode/uxutil.c b/src/microcode/uxutil.c index 2de3ff877..029105b97 100644 --- a/src/microcode/uxutil.c +++ b/src/microcode/uxutil.c @@ -182,7 +182,7 @@ userio_choose_option (const char * herald, fputs (prompt, stdout); fflush (stdout); { - char command = (userio_read_char_raw ()); + unsigned char command = ((unsigned char) (userio_read_char_raw ())); if ((command == '\0') && (errno != 0)) return (command); putc ('\n', stdout); @@ -197,7 +197,7 @@ userio_choose_option (const char * herald, if (choice == 0) break; { - char option = (*choice); + unsigned char option = (*choice); if (islower (option)) option = (toupper (option)); if (command == option) -- 2.25.1