Skip to content

Commit

Permalink
Merge pull request #1833 from psychocrypt/fix-amdJconfVariableCheck
Browse files Browse the repository at this point in the history
fix that type of `memChunk` is not tested
  • Loading branch information
fireice-uk authored Sep 19, 2018
2 parents 55cfa2d + 8a2f294 commit 35377a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmrstak/backend/amd/jconf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 35377a4

Please sign in to comment.