ref: c4d34664bfc7e64e6473f3a81580d2e3160df854
parent: cd65436fb95d1413235ccf3f4f10fac27f9d9872
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jun 19 19:59:25 EDT 2019
ape: fix stdio putc() macro, avoiding "result of operation not used" warning moving _IO_CHMASK masking on the right hand side fixes it.
--- a/sys/include/ape/stdio.h
+++ b/sys/include/ape/stdio.h
@@ -112,7 +112,7 @@
#define getchar() getc(stdin)
extern char *gets(char *);
extern int putc(int, FILE *);
-#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=c)&_IO_CHMASK)
+#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=(c)&_IO_CHMASK))
extern int _IO_putc(int, FILE *);
extern int putchar(int);
#define putchar(c) putc(c, stdout)
--
⑨