remove useless/erroneous condition
The offset can never be negative (size_t is unsigned). And this treated offset = 0 as out of bounds, which is nonsense. In fact, offset == size is also not invalid (it is the end of file).
Loading
Please register or sign in to comment