mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 21:17:52 +00:00
Merge pull request #1942 from cohcho/fix_mem_align
MemoryPool: fix alignment modification
This commit is contained in:
commit
837bd1a43c
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));
|
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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue