mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-25 21:46:14 +01:00
garray.c (g_ptr_array_remove_index): bugfix: index check for array has
been wrong
This commit is contained in:
parent
5272119ce9
commit
de89a5b945
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1998-08-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* garray.c (g_ptr_array_remove_index): bugfix: index check for
|
||||||
|
array has been wrong.
|
||||||
|
|
||||||
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 31 22:17:05 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* testglib.c (g_node_test): added a GNode test.
|
* testglib.c (g_node_test): added a GNode test.
|
||||||
|
2
garray.c
2
garray.c
@ -236,7 +236,7 @@ g_ptr_array_remove_index (GPtrArray* farray,
|
|||||||
|
|
||||||
g_return_if_fail (array);
|
g_return_if_fail (array);
|
||||||
|
|
||||||
g_return_if_fail (index >= array->len);
|
g_return_if_fail (index < array->len);
|
||||||
|
|
||||||
array->pdata[index] = array->pdata[array->len - 1];
|
array->pdata[index] = array->pdata[array->len - 1];
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ g_ptr_array_remove_index (GPtrArray* farray,
|
|||||||
|
|
||||||
g_return_if_fail (array);
|
g_return_if_fail (array);
|
||||||
|
|
||||||
g_return_if_fail (index >= array->len);
|
g_return_if_fail (index < array->len);
|
||||||
|
|
||||||
array->pdata[index] = array->pdata[array->len - 1];
|
array->pdata[index] = array->pdata[array->len - 1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user