From: btb Date: Sun, 18 Jan 2009 10:03:38 +0000 (+0000) Subject: CustomKey enum isn't necessarily signed. comparing against -1 works X-Git-Tag: fremantle/3.0+alpha0~108 X-Git-Url: http://git.itanic.dy.fi/?p=maemo-mapper;a=commitdiff_plain;h=7d27274282e2a8ed53646afc05c88dfbb1b8b314 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 --- 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])