diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-01 13:20:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-01 13:20:28 -0500 |
| commit | 3e99495ed8d2a384501338edb4885e709d51bf74 (patch) | |
| tree | 1cd6338398a9a011e5144fe8d29c4991acf84e13 /src/value.zig | |
| parent | 0298442100b2d5707099f09d29af554e8c6ac87e (diff) | |
| parent | 39983d7ff524a3e1e25dbd6904e28a6dd11120e6 (diff) | |
| download | zig-3e99495ed8d2a384501338edb4885e709d51bf74.tar.gz zig-3e99495ed8d2a384501338edb4885e709d51bf74.zip | |
Merge pull request #10742 from ziglang/ArrayHashMapEql
std: make ArrayHashMap eql function accept an additional param
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/value.zig b/src/value.zig index 6c2403e13b..e444e2daf1 100644 --- a/src/value.zig +++ b/src/value.zig @@ -1765,7 +1765,8 @@ pub const Value = extern union { const other_context: HashContext = .{ .ty = self.ty }; return @truncate(u32, other_context.hash(val)); } - pub fn eql(self: @This(), a: Value, b: Value) bool { + pub fn eql(self: @This(), a: Value, b: Value, b_index: usize) bool { + _ = b_index; return a.eql(b, self.ty); } }; |
