x11/keymap: Avoid a signed/unsigned comparison

This commit is contained in:
Emmanuele Bassi 2012-03-07 12:07:15 +00:00
parent f54a4532a4
commit f5065059b7
2 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ struct _ClutterKeymapX11
ClutterBackend *backend;
gint min_keycode;
gint max_keycode;
int min_keycode;
int max_keycode;
ClutterModifierType modmap[8];
@ -450,7 +450,7 @@ _clutter_keymap_x11_translate_key_state (ClutterKeymapX11 *keymap,
gboolean
_clutter_keymap_x11_get_is_modifier (ClutterKeymapX11 *keymap,
guint keycode)
gint keycode)
{
g_return_val_if_fail (CLUTTER_IS_KEYMAP_X11 (keymap), FALSE);

View File

@ -46,7 +46,7 @@ gint _clutter_keymap_x11_translate_key_state (ClutterKeymapX11 *keymap,
ClutterModifierType modifier_state,
ClutterModifierType *mods_p);
gboolean _clutter_keymap_x11_get_is_modifier (ClutterKeymapX11 *keymap,
guint keycode);
gint keycode);
G_END_DECLS