[*] Fix allocate_at_least

This commit is contained in:
Reece Wilson 2023-12-23 02:45:50 +00:00
parent bd6b70f215
commit eb95aeeac7

View File

@ -76,7 +76,8 @@ namespace Aurora::Memory
#if defined(AU_LANG_CPP_23)
constexpr std::allocation_result<T *> allocate_at_least(const size_t count)
{
return { this->allocate(count), count };
auto pThat = this->allocate(count);
return { pThat, this->pHeap->GetChunkSize(pThat) };
}
#endif
};