[dconf: 2/5] Fix some harmless sign compare warnings
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf: 2/5] Fix some harmless sign compare warnings
- Date: Tue, 25 Jan 2011 23:30:24 +0000 (UTC)
commit a2918d6c3e676e2656a87b5a5ee974dc5777eb59
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Jan 17 15:17:34 2011 -0500
Fix some harmless sign compare warnings
gvdb-reader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gvdb-reader.c b/gvdb-reader.c
index f49ff4e..264e87d 100644
--- a/gvdb-reader.c
+++ b/gvdb-reader.c
@@ -230,7 +230,7 @@ gvdb_table_check_name (GvdbTable *file,
return FALSE;
parent = guint32_from_le (item->parent);
- if (key_length == 0 && parent == -1)
+ if (key_length == 0 && parent == 0xffffffffu)
return TRUE;
if G_LIKELY (parent < file->n_hash_items && this_size > 0)
@@ -340,7 +340,7 @@ gvdb_table_list (GvdbTable *file,
const guint32_le *list;
gchar **strv;
guint length;
- gint i;
+ guint i;
if ((item = gvdb_table_lookup (file, key, 'L')) == NULL)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]