aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-11 22:19:17 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-11 22:19:17 +0800
commit52f4197e335956ab886506abf7df246c13ef9fd6 (patch)
tree4128e1636666e9a82f52de380b1ee0ab3e5184bb
parent3307a35bc76131d03e392f4e87a9baddc3b3c883 (diff)
downloadgsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.tar
gsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.tar.gz
gsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.tar.bz2
gsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.tar.lz
gsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.tar.xz
gsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.tar.zst
gsoc2013-epiphany-52f4197e335956ab886506abf7df246c13ef9fd6.zip
Fix signed/unsigned int confusion when iterating over a GPtrArray.
2004-11-11 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-history.c: (remove_obsolete_pages): * src/bookmarks/ephy-bookmarks.c: (clear_favorites): Fix signed/unsigned int confusion when iterating over a GPtrArray.
-rw-r--r--ChangeLog8
-rw-r--r--embed/ephy-history.c2
-rw-r--r--src/bookmarks/ephy-bookmarks.c2
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c628e966..7c851cdd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2004-11-11 Christian Persch <chpe@cvs.gnome.org>
+ * 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 <chpe@cvs.gnome.org>
+
* embed/ephy-history.c: (remove_pages_from_host_cb),
(connect_page_removed_from_host), (ephy_history_get_host):
* src/ephy-history-window.c: (cmd_delete),
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 (&current_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;