From 81ef40fbb778b16cb8069b497314e9883f987ac7 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 13 Mar 2018 21:01:00 +0700 Subject: [PATCH] Fix for previous commit. --- src/Mem_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mem_unix.cpp b/src/Mem_unix.cpp index f09b5096e..3e6995444 100644 --- a/src/Mem_unix.cpp +++ b/src/Mem_unix.cpp @@ -51,7 +51,7 @@ bool Mem::allocate(int algo, int threads, bool doubleHash, bool enabled) m_size = MONERO_MEMORY * (threads * ratio + 1); if (!enabled) { - m_memory = static_cast(_mm_malloc(size, 16)); + m_memory = static_cast(_mm_malloc(m_size, 16)); return true; }