mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
std.zon.parse: fix not initializing array sentinel
This commit is contained in:
parent
772793c004
commit
09e4fc4dcf
@ -786,6 +786,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