From a7733de1e7aecb8a0efc101567795c7ff2bebb5f Mon Sep 17 00:00:00 2001 From: cryptonote-social Date: Sat, 27 Jun 2020 09:53:46 -0700 Subject: [PATCH] replace hardcoded literal with its appropriate symbol --- src/jit_compiler_x86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jit_compiler_x86.cpp b/src/jit_compiler_x86.cpp index fe0ff29b..d1e0018d 100644 --- a/src/jit_compiler_x86.cpp +++ b/src/jit_compiler_x86.cpp @@ -295,7 +295,7 @@ namespace randomx { void JitCompilerX86::generateProgramPrologue(Program& prog, ProgramConfiguration& pcfg) { instructionOffsets.clear(); - for (unsigned i = 0; i < 8; ++i) { + for (unsigned i = 0; i < RegistersCount; ++i) { registerUsage[i] = -1; }