Skip to content

Commit b7066b6

Browse files
committed
add workaround for compiler bug
1 parent 829bf5a commit b7066b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/fs.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,8 @@ pub const IterableDir = struct {
809809
// and we avoid the code complexity here.
810810
const w = os.wasi;
811811
start_over: while (true) {
812+
// TODO https://github.com/ziglang/zig/issues/12498
813+
_ = @sizeOf(w.dirent_t) + 1;
812814
// According to the WASI spec, the last entry might be truncated,
813815
// so we need to check if the left buffer contains the whole dirent.
814816
if (self.end_index - self.index < @sizeOf(w.dirent_t)) {

0 commit comments

Comments
 (0)