From d5bafd590b3ab2d804fe6c3553e5620fb52f2319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Mon, 16 Mar 2015 17:53:08 +0100 Subject: [PATCH] (Menu) Fix warnings on C++ build --- menu/menu_entries_cbs_iterate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/menu_entries_cbs_iterate.c b/menu/menu_entries_cbs_iterate.c index f327d1de4c..05ba7ae070 100644 --- a/menu/menu_entries_cbs_iterate.c +++ b/menu/menu_entries_cbs_iterate.c @@ -619,13 +619,13 @@ static int mouse_iterate(unsigned *action) menu->mouse.x = 5; if (menu->mouse.y < 5) menu->mouse.y = 5; - if (menu->mouse.x > menu->frame_buf.width - 5) + if (menu->mouse.x > (int)menu->frame_buf.width - 5) menu->mouse.x = menu->frame_buf.width - 5; - if (menu->mouse.y > menu->frame_buf.height - 5) + if (menu->mouse.y > (int)menu->frame_buf.height - 5) menu->mouse.y = menu->frame_buf.height - 5; menu->mouse.scrollup = (menu->mouse.y == 5); - menu->mouse.scrolldown = (menu->mouse.y == menu->frame_buf.height - 5); + menu->mouse.scrolldown = (menu->mouse.y == (int)menu->frame_buf.height - 5); if (menu->mouse.dx != 0 || menu->mouse.dy !=0 || menu->mouse.left || menu->mouse.wheelup || menu->mouse.wheeldown