diff options
| author | ominitay <37453713+ominitay@users.noreply.github.com> | 2022-01-27 09:59:30 +0000 |
|---|---|---|
| committer | ominitay <37453713+ominitay@users.noreply.github.com> | 2022-01-28 16:12:05 +0000 |
| commit | dc11fe4047450167f6b5b2b0e786881b86b3eb27 (patch) | |
| tree | 7e25612faf4332948edcc8f165d1dfe9d8c52b04 /src/stage1/codegen.cpp | |
| parent | c3ef85aa7654af7f6f45ae9d6497d9fff42e9aff (diff) | |
| download | zig-dc11fe4047450167f6b5b2b0e786881b86b3eb27.tar.gz zig-dc11fe4047450167f6b5b2b0e786881b86b3eb27.zip | |
std: Fix using fs.Dir.Iterator twice
This fixes the use of multiple `Iterator`s in a row on a directory.
Previously, on many platforms, using an `Iterator` on an
already-iterated directory would give no entries.
Fixing this involved seeking to the beginning of the directory on the
first call of `next()`.
Diffstat (limited to 'src/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
