plan9fox/sys/include
Ori Bernstein 1987cc69c8 stdio, ape/stdio: fix order of operations in putc
When calling putc, we need to return either EOF
or the character returned. To distinguish the
two, we need to avoid sign extending 0xff. The
code attempted to do this, but the order of
operations was wrong, so we ended up masking,
setting a character, and then sign extending
the character.

This fixes things so we mask after assignment.
2020-07-11 13:28:58 -07:00
..
ape
9p.h
a.out.h
aml.h
ar.h
auth.h
authsrv.h
avl.h
bin.h
bio.h
bootexec.h
complete.h
control.h
ctype.h
cursor.h
disk.h
draw.h
dtracy.h
event.h
fcall.h
fis.h
flate.h
frame.h
geometry.h
html.h
httpd.h
ip.h
json.h
keyboard.h
libc.h
libsec.h
mach.h
memdraw.h
memlayer.h
mouse.h
mp.h
ndb.h
nfs3.h
plumb.h
pool.h
rdbg.h
regexp.h
sat.h
scribble.h
stdio.h
String.h
sunrpc.h
thread.h
tos.h
trace.h
ttf.h
venti.h