From 3a86d88b431e381d6b4ed50e38018ca545a975e7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 7 Mar 2012 12:07:41 +0000 Subject: [PATCH] x11/device-manager-core: Avoid a signed/unsigned comparison --- clutter/x11/clutter-device-manager-core-x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/x11/clutter-device-manager-core-x11.c b/clutter/x11/clutter-device-manager-core-x11.c index 350864c..2b7da7c 100644 --- a/clutter/x11/clutter-device-manager-core-x11.c +++ b/clutter/x11/clutter-device-manager-core-x11.c @@ -256,8 +256,8 @@ translate_key_event (ClutterBackendX11 *backend_x11, if (n != NoSymbol) { event->key.unicode_value = g_utf8_get_char_validated (buffer, n); - if ((event->key.unicode_value != -1) && - (event->key.unicode_value != -2)) + if ((event->key.unicode_value != (gunichar) -1) && + (event->key.unicode_value != (gunichar) -2)) goto out; } else -- 2.7.4