aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-langs.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-10 02:27:15 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-10 02:27:15 +0800
commit5271d3f561fb658ba746944287ffdeaf0cc1a499 (patch)
treedddac7244dbe0588d1ff6c5802deae3881d00ac9 /lib/ephy-langs.c
parenta2d5ac63c3cc7e22b829938fefa85b3f2ae64aea (diff)
downloadgsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.tar
gsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.tar.gz
gsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.tar.bz2
gsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.tar.lz
gsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.tar.xz
gsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.tar.zst
gsoc2013-epiphany-5271d3f561fb658ba746944287ffdeaf0cc1a499.zip
Fix signed/unsigned int confusion exposed by empty accept-lang list.
2004-11-09 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-langs.c: (ephy_langs_sanitise): Fix signed/unsigned int confusion exposed by empty accept-lang list.
Diffstat (limited to 'lib/ephy-langs.c')
-rw-r--r--lib/ephy-langs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ephy-langs.c b/lib/ephy-langs.c
index bf86010bf..129ab525d 100644
--- a/lib/ephy-langs.c
+++ b/lib/ephy-langs.c
@@ -98,9 +98,9 @@ ephy_langs_sanitise (GArray *array)
}
/* uniquify */
- for (i = 0; i < array->len - 1; i++)
+ for (i = 0; i < (int) array->len - 1; i++)
{
- for (j = array->len - 1; j > i; j--)
+ for (j = (int) array->len - 1; j > i; j--)
{
lang1 = (char *) g_array_index (array,char *, i);
lang2 = (char *) g_array_index (array, char *, j);
@@ -114,9 +114,9 @@ ephy_langs_sanitise (GArray *array)
}
/* move 'xy' code behind all 'xy-ab' codes */
- for (i = array->len - 2; i >= 0; i--)
+ for (i = (int) array->len - 2; i >= 0; i--)
{
- for (j = array->len - 1; j > i; j--)
+ for (j = (int) array->len - 1; j > i; j--)
{
lang1 = (char *) g_array_index (array, char *, i);
lang2 = (char *) g_array_index (array, char *, j);