aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2022-04-19 23:27:34 +0200
committerAndrew Kelley <andrew@ziglang.org>2022-04-19 19:41:12 -0400
commit859ae152bc83ca759f466794b8186fa0d3de5060 (patch)
tree66b729bce443257c5557f04f454f24278b74727c /lib/std/array_hash_map.zig
parent0c5ad335d293be638b8d34e671cf62f84b0babce (diff)
downloadzig-859ae152bc83ca759f466794b8186fa0d3de5060.tar.gz
zig-859ae152bc83ca759f466794b8186fa0d3de5060.zip
array hash map: fix getOrPutAdapted on Managed array hash map
Diffstat (limited to 'lib/std/array_hash_map.zig')
-rw-r--r--lib/std/array_hash_map.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig
index aed60a1f0d..31860963af 100644
--- 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