fix signed/unsigned comparison
This commit is contained in:
parent
6e138bbf54
commit
6b1d672dc1
@ -180,7 +180,7 @@ class BinaryHeap
|
||||
bool WasInserted(const NodeID node) const
|
||||
{
|
||||
const auto index = node_index.peek_index(node);
|
||||
if (index >= static_cast<Key>(inserted_nodes.size()))
|
||||
if (index >= static_cast<decltype(index)>(inserted_nodes.size()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user