Fix putchar() return value.
This commit is contained in:
parent
9f34262f95
commit
bbcc08a6b6
|
@ -22,9 +22,10 @@ static intptr_t i_getchar(void)
|
||||||
return fgetc(output_unit);
|
return fgetc(output_unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void i_putchar(intptr_t c)
|
static intptr_t i_putchar(intptr_t c)
|
||||||
{
|
{
|
||||||
fputc(c, output_unit);
|
fputc(c, output_unit);
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
uintptr_t b_char = (uintptr_t)i_char;
|
uintptr_t b_char = (uintptr_t)i_char;
|
||||||
|
|
Loading…
Reference in a new issue