These should be u32s
This commit is contained in:
parent
12e5b4adb9
commit
217d75024d
@ -15,7 +15,7 @@ static u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSiz
|
|||||||
const u8 *patternc = (const u8 *)pattern;
|
const u8 *patternc = (const u8 *)pattern;
|
||||||
|
|
||||||
//Preprocessing
|
//Preprocessing
|
||||||
int table[256];
|
u32 table[256];
|
||||||
|
|
||||||
for(u32 i = 0; i < 256; ++i)
|
for(u32 i = 0; i < 256; ++i)
|
||||||
table[i] = patternSize + 1;
|
table[i] = patternSize + 1;
|
||||||
|
@ -41,7 +41,7 @@ u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize){
|
|||||||
const u8 *patternc = (const u8 *)pattern;
|
const u8 *patternc = (const u8 *)pattern;
|
||||||
|
|
||||||
//Preprocessing
|
//Preprocessing
|
||||||
int table[256];
|
u32 table[256];
|
||||||
|
|
||||||
for(u32 i = 0; i < 256; ++i)
|
for(u32 i = 0; i < 256; ++i)
|
||||||
table[i] = patternSize + 1;
|
table[i] = patternSize + 1;
|
||||||
|
Reference in New Issue
Block a user