]> git.itanic.dy.fi Git - maemo-mapper/commitdiff
CustomKey enum isn't necessarily signed. comparing against -1 works
authorbtb <bradleyb@u.washington.edu>
Sun, 18 Jan 2009 10:03:38 +0000 (10:03 +0000)
committerbtb <bradleyb@u.washington.edu>
Sun, 18 Jan 2009 10:03:38 +0000 (10:03 +0000)
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

index 4af8e219c33a74c67bd9ab5ab2380c85b7e12653..dc8aca0159d9a75666cd655cfa13283618cb049d 100644 (file)
@@ -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])