mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-05 16:07:42 +00:00
Update Asm.cpp
parse(value.IsBool()) should be changed to parse(value.GetBool()), otherwise if the 'asm' parameter in config has a boolean value, it will be parse as 'true' even if it's actually 'false'.
This commit is contained in:
parent
782a91f7e6
commit
fbba3d1be6
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ xmrig::Assembly xmrig::Asm::parse(const char *assembly, Assembly defaultValue)
|
|||
xmrig::Assembly xmrig::Asm::parse(const rapidjson::Value &value, Assembly defaultValue)
|
||||
{
|
||||
if (value.IsBool()) {
|
||||
return parse(value.IsBool());
|
||||
return parse(value.GetBool());
|
||||
}
|
||||
|
||||
if (value.IsString()) {
|
||||
|
|
Loading…
Reference in a new issue