mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 02:03:08 +00:00
add workaround for compiler bug
This commit is contained in:
parent
829bf5a03e
commit
b7066b6024
@ -809,6 +809,8 @@ pub const IterableDir = struct {
|
|||||||
// and we avoid the code complexity here.
|
// and we avoid the code complexity here.
|
||||||
const w = os.wasi;
|
const w = os.wasi;
|
||||||
start_over: while (true) {
|
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,
|
// According to the WASI spec, the last entry might be truncated,
|
||||||
// so we need to check if the left buffer contains the whole dirent.
|
// so we need to check if the left buffer contains the whole dirent.
|
||||||
if (self.end_index - self.index < @sizeOf(w.dirent_t)) {
|
if (self.end_index - self.index < @sizeOf(w.dirent_t)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user