Make it compile. (#119337, self.)
authorMorten Welinder <terra@gnome.org>
Wed, 5 Nov 2003 17:15:24 +0000 (17:15 +0000)
committerMorten Welinder <mortenw@src.gnome.org>
Wed, 5 Nov 2003 17:15:24 +0000 (17:15 +0000)
2003-11-05  Morten Welinder  <terra@gnome.org>

* glib/garray.c (g_ptr_array_remove_range): Make it compile.
(#119337, self.)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/garray.c

index d229e38..7f357fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-11-05  Morten Welinder  <terra@gnome.org>
 
+       * glib/garray.c (g_ptr_array_remove_range): Make it compile.
+       (#119337, self.)
+
        * glib/gstring.c (g_string_insert_len): Handle the case where the
        to-be-inserted string is a substring of the target string.
        (g_string_assign): Handle "s = s;".
index d229e38..7f357fd 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-05  Morten Welinder  <terra@gnome.org>
 
+       * glib/garray.c (g_ptr_array_remove_range): Make it compile.
+       (#119337, self.)
+
        * glib/gstring.c (g_string_insert_len): Handle the case where the
        to-be-inserted string is a substring of the target string.
        (g_string_assign): Handle "s = s;".
index d229e38..7f357fd 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-05  Morten Welinder  <terra@gnome.org>
 
+       * glib/garray.c (g_ptr_array_remove_range): Make it compile.
+       (#119337, self.)
+
        * glib/gstring.c (g_string_insert_len): Handle the case where the
        to-be-inserted string is a substring of the target string.
        (g_string_assign): Handle "s = s;".
index d229e38..7f357fd 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-05  Morten Welinder  <terra@gnome.org>
 
+       * glib/garray.c (g_ptr_array_remove_range): Make it compile.
+       (#119337, self.)
+
        * glib/gstring.c (g_string_insert_len): Handle the case where the
        to-be-inserted string is a substring of the target string.
        (g_string_assign): Handle "s = s;".
index d229e38..7f357fd 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-05  Morten Welinder  <terra@gnome.org>
 
+       * glib/garray.c (g_ptr_array_remove_range): Make it compile.
+       (#119337, self.)
+
        * glib/gstring.c (g_string_insert_len): Handle the case where the
        to-be-inserted string is a substring of the target string.
        (g_string_assign): Handle "s = s;".
index d229e38..7f357fd 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-05  Morten Welinder  <terra@gnome.org>
 
+       * glib/garray.c (g_ptr_array_remove_range): Make it compile.
+       (#119337, self.)
+
        * glib/gstring.c (g_string_insert_len): Handle the case where the
        to-be-inserted string is a substring of the target string.
        (g_string_assign): Handle "s = s;".
index 75ec5d5..e38a5a7 100644 (file)
@@ -550,7 +550,11 @@ g_ptr_array_remove_range (GPtrArray* farray,
 
   array->len -= length;
 #ifdef ENABLE_GC_FRIENDLY
-  g_array_elt_zero (array->pdata, array->len, length);
+  {
+    guint i;
+    for (i = 0; i < length; i++)
+      array->pdata[array->len + i] = NULL;
+  }
 #endif /* ENABLE_GC_FRIENDLY */
 }