mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
x11/device-manager-core: Avoid a signed/unsigned comparison
This commit is contained in:
parent
f5065059b7
commit
3a86d88b43
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user