fix: build on recent gcc13 (ref #561)

This commit is contained in:
jeefo 2024-05-07 23:11:21 +03:00
commit 68a906e32d
No known key found for this signature in database
GPG key ID: D696786B81B667C8
2 changed files with 3 additions and 3 deletions

View file

@ -268,8 +268,8 @@ public:
const IntArray &getNodesInBucket (const Vector &pos); const IntArray &getNodesInBucket (const Vector &pos);
public: public:
size_t getMaxRouteLength () const { int32_t getMaxRouteLength () const {
return m_paths.length () / 2; return length () / 2;
} }
StringRef getAuthor () const { StringRef getAuthor () const {

View file

@ -188,7 +188,7 @@ public:
m_path[0] = 0; m_path[0] = 0;
} }
void init (size_t length) { void init (int32_t length) {
m_path = cr::makeUnique <int32_t[]> (length); m_path = cr::makeUnique <int32_t[]> (length);
} }
}; };