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

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);
}
};