X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Fshgetc.h;h=7beb8ce62182b64bb6f7349640b6f2d833b113c3;hp=0543cb0dc5493fbd0a644832eee122021081eb4a;hb=7650390de8f72822ec0d4a9fb5b52efcf0be4698;hpb=26832d045f46e68b79277916edbad7512d253704 diff --git a/src/internal/shgetc.h b/src/internal/shgetc.h index 0543cb0d..7beb8ce6 100644 --- a/src/internal/shgetc.h +++ b/src/internal/shgetc.h @@ -6,4 +6,4 @@ int __shgetc(FILE *); #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend)) #define shlim(f, lim) __shlim((f), (lim)) #define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f)) -#define shunget(f) ((f)->rend ? (void)(f)->rpos-- : (void)0) +#define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0)