diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-08 16:00:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-08 16:00:28 -0400 |
| commit | ab4eeb770a0af411d525616dcdbfa4a8491f8ac0 (patch) | |
| tree | d19b6b0cdb71a7e0f6bc65379441992753979a4a /lib/std/Progress.zig | |
| parent | 8f20e81b8816aadd8ceb1b04bd3727cc1d124464 (diff) | |
| parent | 65ced4a33436fa762de75e22a986ae08a8c0d9cc (diff) | |
| download | zig-ab4eeb770a0af411d525616dcdbfa4a8491f8ac0.tar.gz zig-ab4eeb770a0af411d525616dcdbfa4a8491f8ac0.zip | |
Merge pull request #20528 from jacobly0/tsip
InternPool: begin conversion to thread-safe data structure
Diffstat (limited to 'lib/std/Progress.zig')
| -rw-r--r-- | lib/std/Progress.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Progress.zig b/lib/std/Progress.zig index 160894aae9..2028e95dd5 100644 --- a/lib/std/Progress.zig +++ b/lib/std/Progress.zig @@ -282,7 +282,7 @@ pub const Node = struct { } fn init(free_index: Index, parent: Parent, name: []const u8, estimated_total_items: usize) Node { - assert(parent != .unused); + assert(parent == .none or @intFromEnum(parent) < node_storage_buffer_len); const storage = storageByIndex(free_index); storage.* = .{ |
