Files
glib/glib/tests
Philip Withnall 37756a06c9 array: Support clearing an empty array with g_array_remove_range()
Previously, calling g_array_remove_range(array, 0, array->len) on an
empty array would result in a precondition failure in
g_array_remove_range(), as the given start index (0), was not strictly
less than the array length (0).

Allow the index to equal the array length, so that zero elements can be
removed from any array. A subsequent check makes sure that the array
length is not overflowed by the index + length.

https://bugzilla.gnome.org/show_bug.cgi?id=763339
2016-03-09 07:50:07 +00:00
..
2015-06-29 08:20:26 -07:00
2015-08-31 13:59:48 -04:00
2010-07-10 23:56:45 -04:00
2015-08-31 13:59:48 -04:00
2014-01-31 14:31:55 +01:00
2015-08-31 13:59:48 -04:00
2014-01-31 14:31:55 +01:00
2014-10-02 14:41:01 -04:00
2010-07-05 23:43:47 -04:00
2012-04-08 10:24:52 -04:00
2011-02-13 23:49:19 -05:00
2015-08-31 13:59:48 -04:00
2015-08-31 13:59:48 -04:00
2011-10-08 19:02:06 -04:00
2014-01-31 14:31:55 +01:00
2013-11-23 00:39:07 -05:00
2010-07-07 22:03:02 -04:00
2014-01-01 17:59:21 -05:00
2013-11-11 22:39:57 +08:00
2014-01-31 14:31:55 +01:00
2011-10-13 01:00:57 -04:00
2015-11-26 09:26:45 -05:00
2011-01-27 23:07:53 -05:00
2014-01-31 14:31:55 +01:00
2014-01-01 17:59:22 -05:00
2011-06-03 23:38:46 -04:00
2014-01-31 14:31:55 +01:00
2015-09-12 11:13:45 -04:00
2011-10-03 23:55:02 -04:00
2014-01-31 14:31:55 +01:00
2015-09-11 12:38:18 -04:00
2015-08-31 13:59:48 -04:00
2015-08-31 13:59:48 -04:00
2014-01-01 22:39:32 -05:00
2014-01-31 14:31:55 +01:00
2015-10-04 10:24:06 -04:00
2014-01-01 17:59:21 -05:00
2014-01-31 14:31:55 +01:00
2014-01-31 14:31:55 +01:00