Fixed a potential crash in JitCompilerX86

This commit is contained in:
tevador
2018-12-27 21:42:38 +01:00
parent 5bc26348f1
commit 39c569ae44
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ namespace RandomX {
};
constexpr int ProgramLength = 512;
constexpr int InstructionCount = 1024 * 1024;
constexpr uint32_t InstructionCount = 1024 * 1024;
constexpr uint32_t ScratchpadSize = 256 * 1024;
constexpr uint32_t ScratchpadLength = ScratchpadSize / sizeof(convertible_t);
constexpr uint32_t ScratchpadL1 = ScratchpadSize / 16 / sizeof(convertible_t);