These should be u32s

This commit is contained in:
Aurora 2016-03-29 18:47:30 +02:00
parent 12e5b4adb9
commit 217d75024d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;