mirror of https://git.musl-libc.org/git/musl
Browse Source
as specified, the int argument providing the character to write is
converted to type unsigned char. for the actual write to buffer,
conversion happened implicitly via the assignment operator; however,
the logic to check whether the argument was a newline used the
original int value. thus usage such as putchar('\n'+0x100) failed to
produce a flush.
master
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue