X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fstdio_impl.h;h=8c81fd53c6585a4946887ed73003bb0f0e5b15b5;hb=7b384c42b73ca1a1e150b3f255990ec53cedec60;hp=4afb7ea25036ed4ea26cfacfce8177e4d66430d7;hpb=5ce3737931bb411a8d167356d4d0287b53b0cbdc;p=musl 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 */