From 52f4197e335956ab886506abf7df246c13ef9fd6 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 11 Nov 2004 14:19:17 +0000 Subject: Fix signed/unsigned int confusion when iterating over a GPtrArray. 2004-11-11 Christian Persch * embed/ephy-history.c: (remove_obsolete_pages): * src/bookmarks/ephy-bookmarks.c: (clear_favorites): Fix signed/unsigned int confusion when iterating over a GPtrArray. --- ChangeLog | 8 ++++++++ embed/ephy-history.c | 2 +- src/bookmarks/ephy-bookmarks.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c628e966..7c851cdd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-11-11 Christian Persch + + * embed/ephy-history.c: (remove_obsolete_pages): + * src/bookmarks/ephy-bookmarks.c: (clear_favorites): + + Fix signed/unsigned int confusion when iterating over + a GPtrArray. + 2004-11-11 Christian Persch * embed/ephy-history.c: (remove_pages_from_host_cb), diff --git a/embed/ephy-history.c b/embed/ephy-history.c index e8ef6c007..90b0fb6f0 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -229,7 +229,7 @@ remove_obsolete_pages (EphyHistory *eb) g_date_set_time (¤t_date, time (NULL)); children = ephy_node_get_children (eb->priv->pages); - for (i = children->len -1; i >= 0; i--) + for (i = (int) children->len - 1; i >= 0; i--) { EphyNode *kid; diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 198d29a9b..e12eec366 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -456,7 +456,7 @@ clear_favorites (EphyBookmarks *bookmarks) node = bookmarks->priv->favorites; children = ephy_node_get_children (node); - for (i = children->len - 1; i >= 0; i--) + for (i = (int) children->len - 1; i >= 0; i--) { EphyNode *kid; -- cgit v1.2.3