diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-04-21 09:49:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 09:49:20 -0400 |
| commit | bd5831ce0e033662fed1adf98e81e7d058c6f883 (patch) | |
| tree | 6d7f915268e23ae56e33a713b1be3ac7560a949e /lib/std/array_hash_map.zig | |
| parent | 1a1b5ee264d8b2219c34d53cc9602692e6d2ba24 (diff) | |
| parent | 31758f79db2c9e1122fd40bdda2243311830a5d4 (diff) | |
| download | zig-bd5831ce0e033662fed1adf98e81e7d058c6f883.tar.gz zig-bd5831ce0e033662fed1adf98e81e7d058c6f883.zip | |
Merge pull request #11467 from ziglang/segmented-list-decls
stage2: use indexes for Decl objects
Diffstat (limited to 'lib/std/array_hash_map.zig')
| -rw-r--r-- | lib/std/array_hash_map.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig index 31860963af..304c98a2a9 100644 --- a/lib/std/array_hash_map.zig +++ b/lib/std/array_hash_map.zig @@ -798,7 +798,7 @@ pub fn ArrayHashMapUnmanaged( allocator: Allocator, additional_capacity: usize, ) !void { - if (@sizeOf(ByIndexContext) != 0) + if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call ensureTotalCapacityContext instead."); return self.ensureUnusedCapacityContext(allocator, additional_capacity, undefined); } |
