[clutter] x11/device-manager-core: Avoid a signed/unsigned comparison



commit 3a86d88b431e381d6b4ed50e38018ca545a975e7
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed Mar 7 12:07:41 2012 +0000

    x11/device-manager-core: Avoid a signed/unsigned comparison

 clutter/x11/clutter-device-manager-core-x11.c |    4 ++--
 1 files 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]