From 608f6ca383dc038e84071c2f59b9972f2ffa734f Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Thu, 30 May 2024 17:22:01 +0200 Subject: [PATCH] Use custom struct instead of std::pair in QueryHeap --- include/util/query_heap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/query_heap.hpp b/include/util/query_heap.hpp index 80eb10061..9ded36c9e 100644 --- a/include/util/query_heap.hpp +++ b/include/util/query_heap.hpp @@ -370,7 +370,7 @@ class QueryHeap const auto index = node_index.peek_index(node); auto &reference = inserted_nodes[index]; reference.weight = weight; - heap.increase(reference.handle, HeapData{weight, index}); + heap.increase(reference.handle, HeapData{weight, static_cast(index)}); } void DecreaseKey(const HeapNode &heapNode)