From 616c52f266f67dfb2aa89e9fc7505a17db108000 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sun, 1 Mar 2020 11:59:53 +0700 Subject: [PATCH] #1572 Fix compile warning. --- src/crypto/randomx/jit_compiler_x86.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/randomx/jit_compiler_x86.cpp b/src/crypto/randomx/jit_compiler_x86.cpp index 83bb87ad3..86e839bc4 100644 --- a/src/crypto/randomx/jit_compiler_x86.cpp +++ b/src/crypto/randomx/jit_compiler_x86.cpp @@ -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); }