diff options
Diffstat (limited to 'src/internal/stdio_impl.h')
-rw-r--r-- | src/internal/stdio_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index 4afb7ea2..8c81fd53 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -100,10 +100,10 @@ hidden void __getopt_msg(const char *, const char *, const char *, size_t); #define ferror(f) ((f)->flags & F_ERR) #define getc_unlocked(f) \ - ( ((f)->rpos < (f)->rend) ? *(f)->rpos++ : __uflow((f)) ) + ( ((f)->rpos != (f)->rend) ? *(f)->rpos++ : __uflow((f)) ) #define putc_unlocked(c, f) \ - ( ((unsigned char)(c)!=(f)->lbf && (f)->wpos<(f)->wend) \ + ( ((unsigned char)(c)!=(f)->lbf && (f)->wpos!=(f)->wend) \ ? *(f)->wpos++ = (c) : __overflow((f),(c)) ) /* Caller-allocated FILE * operations */ |