diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-07 10:05:51 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-07 10:12:19 -0800 |
commit | c10f9a438ed5789479d21c78153ca7f14c05534c (patch) | |
tree | f92e652d2d478da3636d7cf77383df1e1f08c7c5 /src/core/ao_stdio.c | |
parent | 16fd9009d8b034fd8d208115317f65fabe10072a (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.c | 2 |
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; |