mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-12 09:42:50 -05:00
Merge pull request #137 from Spudz76/pr-mo-flex-msvc-error
flex: fix compilation error with MSVC 2022
This commit is contained in:
@@ -76,7 +76,7 @@ static void selectAlgo(unsigned char nibble, bool* selectedAlgos, uint8_t* selec
|
|||||||
static void getAlgoString(void *mem, unsigned int size, uint8_t* selectedAlgoOutput, int algoCount) {
|
static void getAlgoString(void *mem, unsigned int size, uint8_t* selectedAlgoOutput, int algoCount) {
|
||||||
unsigned char *p = (unsigned char *)mem;
|
unsigned char *p = (unsigned char *)mem;
|
||||||
unsigned int len = size/2;
|
unsigned int len = size/2;
|
||||||
bool selectedAlgo[algoCount];
|
bool* selectedAlgo = new bool[algoCount];
|
||||||
for(int z=0; z < algoCount; z++) {
|
for(int z=0; z < algoCount; z++) {
|
||||||
selectedAlgo[z] = false;
|
selectedAlgo[z] = false;
|
||||||
}
|
}
|
||||||
@@ -95,6 +95,7 @@ static void getAlgoString(void *mem, unsigned int size, uint8_t* selectedAlgoOut
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
delete [] selectedAlgo;
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_hex_memory(void *mem, unsigned int size) {
|
void print_hex_memory(void *mem, unsigned int size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user