Commit 859ae152bc

Robin Voetter <robin@voetter.nl>
2022-04-19 23:27:34
array hash map: fix getOrPutAdapted on Managed array hash map
1 parent 0c5ad33
Changed files (1)
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