commit b7066b6024521f077d645c297879cce5f1ed563c (tree)
parent 829bf5a03e510e707de3c48a78bef2f35fe193a6
Author: Veikka Tuominen <git@vexu.eu>
Date: Thu, 1 Dec 2022 14:48:09 +0200
add workaround for compiler bug
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/std/fs.zig b/lib/std/fs.zig
@@ -809,6 +809,8 @@ pub const IterableDir = struct {
// and we avoid the code complexity here.
const w = os.wasi;
start_over: while (true) {
+ // TODO https://github.com/ziglang/zig/issues/12498
+ _ = @sizeOf(w.dirent_t) + 1;
// According to the WASI spec, the last entry might be truncated,
// so we need to check if the left buffer contains the whole dirent.
if (self.end_index - self.index < @sizeOf(w.dirent_t)) {