#1572 Fix compile warning.

This commit is contained in:
XMRig 2020-03-01 11:59:53 +07:00
parent 5bad45925a
commit 616c52f266
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -326,9 +326,9 @@ namespace randomx {
}
void JitCompilerX86::prepare() {
for (int i = 0; i < sizeof(engine); i += 64)
for (size_t i = 0; i < sizeof(engine); i += 64)
rx_prefetch_nta((const char*)(&engine) + i);
for (int i = 0; i < sizeof(RandomX_CurrentConfig); i += 64)
for (size_t i = 0; i < sizeof(RandomX_CurrentConfig); i += 64)
rx_prefetch_nta((const char*)(&RandomX_CurrentConfig) + i);
}