Fix some harmless sign compare warnings

This commit is contained in:
Ryan Lortie 2011-01-17 15:17:34 -05:00
parent ba5619ba7f
commit a2918d6c3e

View File

@ -230,7 +230,7 @@ gvdb_table_check_name (GvdbTable *file,
return FALSE; return FALSE;
parent = guint32_from_le (item->parent); parent = guint32_from_le (item->parent);
if (key_length == 0 && parent == -1) if (key_length == 0 && parent == 0xffffffffu)
return TRUE; return TRUE;
if G_LIKELY (parent < file->n_hash_items && this_size > 0) if G_LIKELY (parent < file->n_hash_items && this_size > 0)
@ -340,7 +340,7 @@ gvdb_table_list (GvdbTable *file,
const guint32_le *list; const guint32_le *list;
gchar **strv; gchar **strv;
guint length; guint length;
gint i; guint i;
if ((item = gvdb_table_lookup (file, key, 'L')) == NULL) if ((item = gvdb_table_lookup (file, key, 'L')) == NULL)
return NULL; return NULL;