summaryrefslogtreecommitdiff
path: root/ao_stdio.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-29 17:46:56 -0700
committerKeith Packard <keithp@keithp.com>2009-04-29 17:46:56 -0700
commitde7814c738488c2c16c6216c93fa78128895e5d5 (patch)
tree07a295d9f3786623e382a92bbab811ac19a78016 /ao_stdio.c
parent4ae74fffb939d67424efa3e7f433637f1f920ebc (diff)
Use 'char' instead of 'uint8_t' for character data
String and character constants are of char type, so using uint8_t causes promotion to 16-bit types when comparing the two.
Diffstat (limited to 'ao_stdio.c')
-rw-r--r--ao_stdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao_stdio.c b/ao_stdio.c
index da57f409..fb8ce093 100644
--- a/ao_stdio.c
+++ b/ao_stdio.c
@@ -26,7 +26,7 @@ putchar(char c)
{
if (c == '\n')
ao_usb_putchar('\r');
- ao_usb_putchar((uint8_t) c);
+ ao_usb_putchar(c);
}
void
@@ -38,5 +38,5 @@ flush(void)
char
getchar(void)
{
- return (char) ao_usb_getchar();
+ return ao_usb_getchar();
}