Unified · Split
| @@ -113,7 +113,7 @@ static int ffshgetc(FFFILE *f) · 112 unmodified lines | ||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | #define shlim(f, lim) ffshlim((f), (lim)) |
| 116 | −#define shgetc(f) (((f)->rpos != (f)->shend) ? *(f)->rpos++ : ffshgetc(f)) | |
| 116 | +#define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : ffshgetc(f)) | |
| 117 | 117 | #define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0) |
| 118 | 118 | |
| 119 | 119 | static const unsigned char table[] = { -1, |