Fix putchar() return value.

This commit is contained in:
David Given 2016-11-28 21:38:46 +01:00
parent 9f34262f95
commit bbcc08a6b6

View file

@ -22,9 +22,10 @@ static intptr_t i_getchar(void)
return fgetc(output_unit);
}
static void i_putchar(intptr_t c)
static intptr_t i_putchar(intptr_t c)
{
fputc(c, output_unit);
return c;
}
uintptr_t b_char = (uintptr_t)i_char;