From 7d27274282e2a8ed53646afc05c88dfbb1b8b314 Mon Sep 17 00:00:00 2001 From: btb Date: Sun, 18 Jan 2009 10:03:38 +0000 Subject: [PATCH] CustomKey enum isn't necessarily signed. comparing against -1 works either way, though. git-svn-id: svn+ssh://garage/var/lib/gforge/svnroot/maemo-mapper/trunk@242 6c538b50-5814-0410-93ad-8bdf4c0149d1 --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 4af8e21..dc8aca0 100644 --- a/src/input.c +++ b/src/input.c @@ -456,7 +456,7 @@ window_cb_key_release(GtkWidget* widget, GdkEventKey *event) printf("%s()\n", __PRETTY_FUNCTION__); custom_key = get_custom_key_from_keyval(event->keyval); - if(custom_key < 0) + if(custom_key == -1) return FALSE; /* Not our event. */ switch(_action[custom_key]) -- 2.44.0