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:
parent
63191949b9
commit
ef1bcc7338
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue