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

This commit is contained in:
Emmanuele Bassi 2012-03-07 12:07:41 +00:00
parent f5065059b7
commit 3a86d88b43

View File

@ -256,8 +256,8 @@ translate_key_event (ClutterBackendX11 *backend_x11,
if (n != NoSymbol) if (n != NoSymbol)
{ {
event->key.unicode_value = g_utf8_get_char_validated (buffer, n); event->key.unicode_value = g_utf8_get_char_validated (buffer, n);
if ((event->key.unicode_value != -1) && if ((event->key.unicode_value != (gunichar) -1) &&
(event->key.unicode_value != -2)) (event->key.unicode_value != (gunichar) -2))
goto out; goto out;
} }
else else