From f1a24b7ddd447a0fe7af930ca435d5eb3d4d00b5 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 2 Nov 2020 13:50:10 +0100 Subject: [PATCH] Fix compilation on ARMv8 with GCC 9.3.0 --- src/crypto/rx/RxDataset.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/rx/RxDataset.cpp b/src/crypto/rx/RxDataset.cpp index 03b0f155..c207d6f4 100644 --- a/src/crypto/rx/RxDataset.cpp +++ b/src/crypto/rx/RxDataset.cpp @@ -174,7 +174,8 @@ void xmrig::RxDataset::setRaw(const void *raw) return; } - memcpy(randomx_get_dataset_memory(m_dataset), raw, maxSize()); + volatile size_t N = maxSize(); + memcpy(randomx_get_dataset_memory(m_dataset), raw, N); }