altos: fix functions calling pollchar to use 'int' to hold the value
[fw/altos] / src / core / ao_stdio.c
index 4a832487e6102612c7aeed176247d75c981fd3d9..1748dfe8d940ecc550ff41911db01b0259291ec9 100644 (file)
@@ -98,7 +98,7 @@ __xdata uint8_t ao_stdin_ready;
 char
 getchar(void) __reentrant
 {
-       char c;
+       int c;
        ao_arch_critical(
                int8_t stdio = ao_cur_stdio;