From 4cf3bb9930f623c5f8b695e6a93abc57d9ebcfa4 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 16 Sep 2017 15:20:33 +0300 Subject: [PATCH] #111 Fixed build without AEON support. --- src/crypto/CryptoNight.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/CryptoNight.cpp b/src/crypto/CryptoNight.cpp index a463c9f9..c4e56678 100644 --- a/src/crypto/CryptoNight.cpp +++ b/src/crypto/CryptoNight.cpp @@ -140,5 +140,9 @@ bool CryptoNight::selfTest(int algo) { _mm_free(ctx->memory); _mm_free(ctx); +# ifndef XMRIG_NO_AEON return memcmp(output, algo == Options::ALGO_CRYPTONIGHT_LITE ? test_output1 : test_output0, (Options::i()->doubleHash() ? 64 : 32)) == 0; +# else + return memcmp(output, test_output0, (Options::i()->doubleHash() ? 64 : 32)) == 0; +# endif }