Skip to content
Snippets Groups Projects
Unverified Commit 35377a42 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #1833 from psychocrypt/fix-amdJconfVariableCheck

fix that type of `memChunk` is not tested
parents 55cfa2d8 8a2f294d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment