1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

menu_keys(): Do not compare different enums

(cherry picked from commit b9fb1d3c7d860fbfcc2b48601787be0af7099952)
This commit is contained in:
Petr Baudis 2011-09-24 02:10:54 +02:00 committed by Kalle Olavi Niemitalo
parent 8fafdcffba
commit bc254b6079

View File

@ -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;