From 69f0fc513a1926e6214733c678f785b724da0340 Mon Sep 17 00:00:00 2001 From: Bhargav Srinivasan Date: Tue, 22 Sep 2020 01:36:41 -0700 Subject: [PATCH] sorry, local compiler using different version of zig --- lib/std/priority_queue.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/priority_queue.zig b/lib/std/priority_queue.zig index a074fbec19..345d5db584 100644 --- a/lib/std/priority_queue.zig +++ b/lib/std/priority_queue.zig @@ -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);