mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
array hash map: fix getOrPutAdapted on Managed array hash map
This commit is contained in:
parent
0c5ad335d2
commit
859ae152bc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user