From fbba3d1be62d65117871ad488f69716e0bd9cbc1 Mon Sep 17 00:00:00 2001 From: Roboto12 <43680809+Roboto12@users.noreply.github.com> Date: Fri, 28 Sep 2018 19:18:37 +0300 Subject: [PATCH] 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'. --- src/crypto/Asm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/Asm.cpp b/src/crypto/Asm.cpp index 79dd1cc9..48c1beb8 100644 --- a/src/crypto/Asm.cpp +++ b/src/crypto/Asm.cpp @@ -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()) {