commit bd613c13f14151295f4d05f1d2e74b3fdd38dd8b parent 28bc47f83eb783d32b2bf6188cecf3df9e8d27e2 Author: Ashymad <szymon.mikulicz@posteo.net> Date: Thu, 29 Feb 2024 22:46:24 +0100 Slice the allocated mem Diffstat:
| M | zlox/src/trie.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zlox/src/trie.zig b/zlox/src/trie.zig @@ -36,7 +36,7 @@ pub fn TrieTable(comptime T: type, comptime list: anytype) type { } leaf.value = el.@"1"; } - break :blk .{ .allocated = allocated, .tip = tip }; + break :blk .{ .allocated = allocated[0..allocated_i], .tip = tip }; }; return struct {