zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 859ae152bc83ca759f466794b8186fa0d3de5060 (tree)
parent 0c5ad335d293be638b8d34e671cf62f84b0babce
Author: Robin Voetter <robin@voetter.nl>
Date:   Tue, 19 Apr 2022 23:27:34 +0200

array hash map: fix getOrPutAdapted on Managed array hash map

Diffstat:
Mlib/std/array_hash_map.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig @@ -185,7 +185,7 @@ pub fn ArrayHashMap( return self.unmanaged.getOrPutContext(self.allocator, key, self.ctx); } pub fn getOrPutAdapted(self: *Self, key: anytype, ctx: anytype) !GetOrPutResult { - return self.unmanaged.getOrPutContextAdapted(key, ctx, self.ctx); + return self.unmanaged.getOrPutContextAdapted(self.allocator, key, ctx, self.ctx); } /// If there is an existing item with `key`, then the result