mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
sorry, local compiler using different version of zig
This commit is contained in:
parent
f083ea88d8
commit
69f0fc513a
@ -195,7 +195,7 @@ pub fn PriorityQueue(comptime T: type) type {
|
||||
}
|
||||
|
||||
pub fn update(self: *Self, elem: T, new_elem: T) !void {
|
||||
var update_index: usize = std.sort.binarySearch(T, elem, self.items, orderFn) orelse 0;
|
||||
var update_index: usize = std.sort.binarySearch(T, elem, self.items, {}, orderFn) orelse 0;
|
||||
assert (update_index >= 0 and update_index < self.items.len);
|
||||
_ = self.removeIndex(update_index);
|
||||
try self.add(new_elem);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user