mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-12-22 07:48:54 +00:00
switch on int
This commit is contained in:
parent
abf2a5034e
commit
4296c35d79
@ -64,7 +64,7 @@ extern "C" {
|
|||||||
try {
|
try {
|
||||||
cache = new randomx_cache();
|
cache = new randomx_cache();
|
||||||
cache->argonImpl = impl;
|
cache->argonImpl = impl;
|
||||||
switch (flags & (RANDOMX_FLAG_JIT | RANDOMX_FLAG_LARGE_PAGES)) {
|
switch ((int)(flags & (RANDOMX_FLAG_JIT | RANDOMX_FLAG_LARGE_PAGES))) {
|
||||||
case RANDOMX_FLAG_DEFAULT:
|
case RANDOMX_FLAG_DEFAULT:
|
||||||
cache->dealloc = &randomx::deallocCache<randomx::DefaultAllocator>;
|
cache->dealloc = &randomx::deallocCache<randomx::DefaultAllocator>;
|
||||||
cache->jit = nullptr;
|
cache->jit = nullptr;
|
||||||
@ -193,7 +193,7 @@ extern "C" {
|
|||||||
randomx_vm *vm = nullptr;
|
randomx_vm *vm = nullptr;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
switch (flags & (RANDOMX_FLAG_FULL_MEM | RANDOMX_FLAG_JIT | RANDOMX_FLAG_HARD_AES | RANDOMX_FLAG_LARGE_PAGES)) {
|
switch ((int)(flags & (RANDOMX_FLAG_FULL_MEM | RANDOMX_FLAG_JIT | RANDOMX_FLAG_HARD_AES | RANDOMX_FLAG_LARGE_PAGES))) {
|
||||||
case RANDOMX_FLAG_DEFAULT:
|
case RANDOMX_FLAG_DEFAULT:
|
||||||
vm = new randomx::InterpretedLightVmDefault();
|
vm = new randomx::InterpretedLightVmDefault();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user