From 8a2f294d20b396aec08ab0b333ed25f3011c36fc Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Sun, 16 Sep 2018 20:24:50 +0200 Subject: [PATCH] fix that type of `memChunk` is not tested There is a copy past mistake tha tthe type of the variable `memChunk` is not tested. --- xmrstak/backend/amd/jconf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmrstak/backend/amd/jconf.cpp b/xmrstak/backend/amd/jconf.cpp index 0f39ff2b9..9e15c930c 100644 --- a/xmrstak/backend/amd/jconf.cpp +++ b/xmrstak/backend/amd/jconf.cpp @@ -142,14 +142,14 @@ bool jconf::GetThreadConfig(size_t id, thd_cfg &cfg) return false; } - cfg.memChunk = (int)memChunk->GetInt64(); - - if(!idx->IsUint64() || cfg.memChunk > 18 ) + if(!memChunk->IsUint64() || (int)memChunk->GetInt64() > 18 ) { printer::inst()->print_msg(L0, "ERROR: mem_chunk must be smaller than 18"); return false; } + cfg.memChunk = (int)memChunk->GetInt64(); + if(!compMode->IsBool()) return false;