diff --git a/src/crypto/CryptoNight_monero.h b/src/crypto/CryptoNight_monero.h index 51e2fa5d..4cea1ffc 100644 --- a/src/crypto/CryptoNight_monero.h +++ b/src/crypto/CryptoNight_monero.h @@ -45,7 +45,7 @@ #endif #define VARIANT1_1(p) \ - if (variant > 1) \ + if (VARIANT > 1) \ { \ const uint8_t tmp = reinterpret_cast(p)[11]; \ static const uint32_t table = 0x75312; \ diff --git a/src/net/Url.cpp b/src/net/Url.cpp index 32930248..2fe86269 100644 --- a/src/net/Url.cpp +++ b/src/net/Url.cpp @@ -222,7 +222,7 @@ void Url::setVariant(int variant) case xmrig::VARIANT_V1: m_variant = variant; break; - case xmrig::VARIANT_V1: + case xmrig::VARIANT_V2: m_variant = variant; break;