Fix: comparison of narrow type to wide type in loop (potential for infinite loops)
This commit is contained in:
@@ -101,7 +101,7 @@ LinkGraphJob::~LinkGraphJob()
|
||||
/* Link graph has been merged into another one. */
|
||||
if (!LinkGraph::IsValidID(this->link_graph.index)) return;
|
||||
|
||||
uint size = this->Size();
|
||||
uint16 size = this->Size();
|
||||
for (NodeID node_id = 0; node_id < size; ++node_id) {
|
||||
Node from = (*this)[node_id];
|
||||
|
||||
|
Reference in New Issue
Block a user