From d54417ac0a09bd6b38e4f9b81172d8718e3f0cfe Mon Sep 17 00:00:00 2001 From: LiquidFenrir Date: Sat, 16 Dec 2017 19:26:27 +0100 Subject: [PATCH] explicit casting --- sysmodules/rosalina/source/menus/process_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodules/rosalina/source/menus/process_list.c b/sysmodules/rosalina/source/menus/process_list.c index 242255e..14e32a3 100644 --- a/sysmodules/rosalina/source/menus/process_list.c +++ b/sysmodules/rosalina/source/menus/process_list.c @@ -362,7 +362,7 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info) 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; if (size >= searchPatternSize) menus[MENU_MODE_NORMAL].selected = (u32)memsearch(startpos, searchPattern, size, searchPatternSize) - (u32)menus[MENU_MODE_NORMAL].buf;