From bc254b60794faa30060108935482cb9fb16a2d39 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 24 Sep 2011 02:10:54 +0200 Subject: [PATCH] menu_keys(): Do not compare different enums (cherry picked from commit b9fb1d3c7d860fbfcc2b48601787be0af7099952) --- src/dialogs/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs/info.c b/src/dialogs/info.c index 9d19d3f5d..e1b957756 100644 --- a/src/dialogs/info.c +++ b/src/dialogs/info.c @@ -114,8 +114,8 @@ menu_keys(struct terminal *term, void *d_, void *xxx) /* Just a little reminder that the following code takes * the easy way. */ - assert(MAIN_ACTIONS > EDIT_ACTIONS); - assert(EDIT_ACTIONS > MENU_ACTIONS); + assert((int) MAIN_ACTIONS > (int) EDIT_ACTIONS); + assert((int) EDIT_ACTIONS > (int) MENU_ACTIONS); if (keymap_id == KEYMAP_MAIN) { action_ids[EDIT_ACTIONS] = ACT_EDIT_NONE;