0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

File.Reader.seekBy: Fix erroneously tossing the buffer in streaming mode

The discard already handles updating the state, so the toss was redundant in the best case and would erroneously drop data in the worst case.

Closes #36568
This commit is contained in:
Ryan Liptak 2026-08-19 17:42:45 -07:00 • committed by Ryan Liptak
commit efd227eca2
2 changed files with 9 additions and 4 deletions