From 217d75024d45b9faf83e84f27d05c96aafc01d41 Mon Sep 17 00:00:00 2001 From: Aurora Date: Tue, 29 Mar 2016 18:47:30 +0200 Subject: [PATCH] These should be u32s --- injector/source/patcher.c | 2 +- source/memory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/injector/source/patcher.c b/injector/source/patcher.c index b38b558..e1af719 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -15,7 +15,7 @@ static u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSiz const u8 *patternc = (const u8 *)pattern; //Preprocessing - int table[256]; + u32 table[256]; for(u32 i = 0; i < 256; ++i) table[i] = patternSize + 1; diff --git a/source/memory.c b/source/memory.c index 07791e9..05d4cdc 100644 --- a/source/memory.c +++ b/source/memory.c @@ -41,7 +41,7 @@ u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize){ const u8 *patternc = (const u8 *)pattern; //Preprocessing - int table[256]; + u32 table[256]; for(u32 i = 0; i < 256; ++i) table[i] = patternSize + 1;