mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +00:00
MemoryPool: fix alignment modification
This commit is contained in:
parent
057fbf7608
commit
eb36d2beef
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue