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