From 7a3fcd9d332f1f2e3e6f021b2930e148ca093c91 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Thu, 22 Sep 2011 10:50:58 +0200 Subject: Fixed bug in evs_delete macro and added some (un)likely's() --- evspy-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'evspy-core.c') diff --git a/evspy-core.c b/evspy-core.c index ec41f1e..b33fd27 100644 --- a/evspy-core.c +++ b/evspy-core.c @@ -187,11 +187,9 @@ static void evspy_event(struct input_handle *handle, unsigned int type, } else if (code == KEY_BACKSPACE && value == EVS_VAL_PRESS) { evs_backspace(); return; - } // Special/unknown keys (alt, ctrl, esc, shift, etc) - if (unlikely(code >= sizeof(map)) || - (map[code] == '.' && likely(code != KEY_DOT))) { + } else if (code >= sizeof(map) || (map[code] == '.' && likely(code != KEY_DOT))) { special_char(code, value); // "Immediate" keys (alphanumeric + some symbols) -- cgit v1.2.3