MemoryPool: fix alignment modification

This commit is contained in:
cohcho 2020-11-10 16:49:10 +00:00
parent 057fbf7608
commit eb36d2beef

View file

@ -71,7 +71,7 @@ uint8_t *xmrig::MemoryPool::get(size_t size, uint32_t)
{
assert(!(size % pageSize));
if (!m_memory || (m_memory->size() - m_offset) < size) {
if (!m_memory || (m_memory->size() - m_offset - m_alignOffset) < size) {
return nullptr;
}