fix: build on recent gcc14
This commit is contained in:
parent
ca73751957
commit
1df9da852c
3 changed files with 4 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit c72215707a9be44eb2582b82a90a4a7f27a9f2e1
|
Subproject commit 9cac79adde707f5e5ab21ff74ff372d51659a304
|
||||||
|
|
@ -269,7 +269,7 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int32_t getMaxRouteLength () const {
|
int32_t getMaxRouteLength () const {
|
||||||
return length () / 2;
|
return (length () / 2) + (kMaxNodes / 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef getAuthor () const {
|
StringRef getAuthor () const {
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void init (int32_t length) {
|
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue