1
0
Fork 0

Codechange: linkgraph always iterates with NodeIDs over the Size(), so make Size() the same type to prevent infinite loops

pull/9288/head
rubidium42 2021-05-26 21:32:43 +02:00 committed by rubidium42
parent ed9e38221a
commit 6fe4d4ad7b
2 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ public:
* Get the current size of the component.
* @return Size.
*/
inline uint16 Size() const { return (uint16)this->nodes.size(); }
inline NodeID Size() const { return (NodeID)this->nodes.size(); }
/**
* Get date of last compression.

View File

@ -332,7 +332,7 @@ public:
* Get the size of the underlying link graph.
* @return Size.
*/
inline uint Size() const { return this->link_graph.Size(); }
inline NodeID Size() const { return this->link_graph.Size(); }
/**
* Get the cargo of the underlying link graph.