Fixed TLS build on Windows GCC/MVSC

Cleanup TLS compile
This commit is contained in:
BenDr0id 2018-03-01 17:44:15 +01:00
parent bc110ef162
commit 972f542901
13 changed files with 66 additions and 51 deletions

View file

@ -153,7 +153,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);
}