explicit casting

This commit is contained in:
LiquidFenrir 2017-12-16 19:26:27 +01:00
parent 648801d432
commit d54417ac0a

View File

@ -362,7 +362,7 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info)
void finishSearching(void) void finishSearching(void)
{ {
u8 * startpos = menus[MENU_MODE_NORMAL].buf + menus[MENU_MODE_NORMAL].selected; u8 * startpos = (u8*)((u32)menus[MENU_MODE_NORMAL].buf + menus[MENU_MODE_NORMAL].selected);
u32 size = menus[MENU_MODE_NORMAL].max - menus[MENU_MODE_NORMAL].selected; u32 size = menus[MENU_MODE_NORMAL].max - menus[MENU_MODE_NORMAL].selected;
if (size >= searchPatternSize) if (size >= searchPatternSize)
menus[MENU_MODE_NORMAL].selected = (u32)memsearch(startpos, searchPattern, size, searchPatternSize) - (u32)menus[MENU_MODE_NORMAL].buf; menus[MENU_MODE_NORMAL].selected = (u32)memsearch(startpos, searchPattern, size, searchPatternSize) - (u32)menus[MENU_MODE_NORMAL].buf;