Skip to content
Snippets Groups Projects
Commit 8a2f294d authored by psychocrypt's avatar psychocrypt
Browse files

fix that type of `memChunk` is not tested

There is a copy past mistake tha tthe type of the variable `memChunk` is not tested.
parent b5d38909
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