Explorar el Código

Merge pull request #188 from cryptonote-social/master

replace hardcoded literal with its appropriate symbol
tevador hace 6 años
padre
commit
9905ec9c5a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/jit_compiler_x86.cpp

+ 1 - 1
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;
 		}