[*] Fix allocate_at_least
This commit is contained in:
parent
bd6b70f215
commit
eb95aeeac7
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user