summaryrefslogtreecommitdiff
path: root/src/core/ao_stdio.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-07 10:05:51 -0800
committerKeith Packard <keithp@keithp.com>2012-12-07 10:12:19 -0800
commitc10f9a438ed5789479d21c78153ca7f14c05534c (patch)
treef92e652d2d478da3636d7cf77383df1e1f08c7c5 /src/core/ao_stdio.c
parent16fd9009d8b034fd8d208115317f65fabe10072a (diff)
altos: fix functions calling pollchar to use 'int' to hold the value
AO_READ_AGAIN doesn't fit in a char anymore now that stdio is 8-bit clean, everyone using pollchar must use an 'int' variable to capture the whole value from pollchar. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_stdio.c')
-rw-r--r--src/core/ao_stdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_stdio.c b/src/core/ao_stdio.c
index 4a832487..1748dfe8 100644
--- a/src/core/ao_stdio.c
+++ b/src/core/ao_stdio.c
@@ -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;