mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
std.zon.parse: fix not initializing array sentinel
This commit is contained in:
parent
8d5b651c3a
commit
582b96c361
@ -717,6 +717,7 @@ const Parser = struct {
|
||||
|
||||
elem.* = try self.parseExpr(array_info.child, nodes.at(@intCast(i)));
|
||||
}
|
||||
if (array_info.sentinel()) |s| result[result.len] = s;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user