1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 23:52:38 -05:00

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