From 7c8a9677a1f835ff04015d0eb59a6080e1e56613 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 13 Jun 2017 20:03:43 +0300 Subject: [PATCH] Fix crash. --- src/crypto/CryptoNight_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/CryptoNight_p.h b/src/crypto/CryptoNight_p.h index 8a5268f4e..fa2fa93a8 100644 --- a/src/crypto/CryptoNight_p.h +++ b/src/crypto/CryptoNight_p.h @@ -363,7 +363,7 @@ inline void cryptonight_double_hash(const void *__restrict__ input, size_t size, keccak((const uint8_t *) input + size, size, ctx->state1, 200); const uint8_t* l0 = ctx->memory; - const uint8_t* l1 = ctx->memory + MEMORY; + const uint8_t* l1 = ctx->memory + MEM; uint64_t* h0 = reinterpret_cast(ctx->state0); uint64_t* h1 = reinterpret_cast(ctx->state1);