mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +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)
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user