fix: build on recent gcc14

This commit is contained in:
jeefo 2024-05-15 10:14:18 +03:00
commit 1df9da852c
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit c72215707a9be44eb2582b82a90a4a7f27a9f2e1
Subproject commit 9cac79adde707f5e5ab21ff74ff372d51659a304

View file

@ -269,7 +269,7 @@ public:
public:
int32_t getMaxRouteLength () const {
return length () / 2;
return (length () / 2) + (kMaxNodes / 256);
}
StringRef getAuthor () const {

View file

@ -189,7 +189,8 @@ public:
}
void init (int32_t length) {
m_path = cr::makeUnique <int32_t[]> (length);
const auto allocSize = static_cast <uint32_t> (length);
m_path = cr::makeUnique <int32_t[]> (allocSize);
}
};