fix wrong result for putc variants due to operator precedence
authorRich Felker <dalias@aerifal.cx>
Thu, 18 Oct 2018 17:33:11 +0000 (13:33 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 18 Oct 2018 17:36:43 +0000 (13:36 -0400)
commita21a6092cfc0c7e7cb8c0273e5f94d54c0e0eabd
tree84ffe8c11658cccb19f5b68897f78f7eb221d752
parent9dd19122565c70bc6e0fff35724c91a61209a629
fix wrong result for putc variants due to operator precedence

the internal putc_unlocked macro was wrongly returning a meaningless
boolean result rather than the written character or EOF.

bug was found by reading (very surprising) asm.
src/internal/stdio_impl.h