mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 09:40:20 +00:00
Fix some obvious type warnings.
This commit is contained in:
@@ -336,7 +336,7 @@ custom_list_get_iter (GtkTreeModel * tree_model,
|
||||
gint n;
|
||||
|
||||
n = gtk_tree_path_get_indices (path)[0];
|
||||
if (n >= custom_list->num_rows || n < 0)
|
||||
if (n < 0 || (guint) n >= custom_list->num_rows)
|
||||
return FALSE;
|
||||
|
||||
record = custom_list->rows[n];
|
||||
@@ -533,7 +533,7 @@ custom_list_iter_nth_child (GtkTreeModel * tree_model,
|
||||
return FALSE;
|
||||
|
||||
/* special case: if parent == NULL, set iter to n-th top-level row */
|
||||
if (n >= custom_list->num_rows)
|
||||
if (n < 0 || (guint) n >= custom_list->num_rows)
|
||||
return FALSE;
|
||||
|
||||
iter->user_data = custom_list->rows[n];
|
||||
|
||||
Reference in New Issue
Block a user