Manual merged #43 Mac OS Compilation fixes

This commit is contained in:
BenDroid 2018-02-21 23:17:11 +01:00
parent 204835a3f3
commit 8fd88a4e11
7 changed files with 10 additions and 7 deletions

View file

@ -47,7 +47,7 @@ bool Mem::allocate(const Options* options)
m_memorySize = 0;
size_t scratchPadSize = m_algo == Options::ALGO_CRYPTONIGHT ? MEMORY : MEMORY_LITE;
for (int i=0; i < m_threads; i++) {
for (size_t i=0; i < m_threads; i++) {
m_memorySize += sizeof(cryptonight_ctx);
m_memorySize += scratchPadSize * getThreadHashFactor(i);
}