projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f3974e
)
Kludgily use a few unsigned chars in uxutil.c for tolower &c.
author
Taylor R Campbell
<campbell@mumble.net>
Thu, 22 Jul 2010 17:24:45 +0000
(17:24 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Thu, 22 Jul 2010 17:24:45 +0000
(17:24 +0000)
src/microcode/uxutil.c
patch
|
blob
|
history
diff --git
a/src/microcode/uxutil.c
b/src/microcode/uxutil.c
index 2de3ff8772ad57ae026a5e5866053ab618c20f5c..029105b97baf14568272b15097ca1ddc660f933b 100644
(file)
--- 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)