ape: fix stdio putc() macro, avoiding "result of operation not used" warning

moving _IO_CHMASK masking on the right hand side fixes it.
This commit is contained in:
cinap_lenrek 2019-06-19 23:59:25 +02:00
parent 63191949b9
commit ef1bcc7338

View file

@ -112,7 +112,7 @@ extern int getchar(void);
#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)