Merge pull request #1926 from SChernykh/dev

Fix compilation on ARMv8 with GCC 9.3.0
This commit is contained in:
xmrig 2020-11-02 19:55:29 +07:00 committed by GitHub
commit 5ac908c027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}