[glib/wip/chergert/garraylist] arraylist: increment list length during prepend to allocated list
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/chergert/garraylist] arraylist: increment list length during prepend to allocated list
- Date: Sun, 13 Sep 2015 11:58:17 +0000 (UTC)
commit dad8c25e9db1f94774de1ab1cd425f34ec449a86
Author: Christian Hergert <christian hergert me>
Date: Sun Sep 13 04:57:27 2015 -0700
arraylist: increment list length during prepend to allocated list
glib/garraylist.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/garraylist.c b/glib/garraylist.c
index 3a5b3cc..1778837 100644
--- a/glib/garraylist.c
+++ b/glib/garraylist.c
@@ -366,6 +366,8 @@ g_array_list_prepend (GArrayList *self,
alloc->items [0].data = data;
+ alloc->len++;
+
_g_array_list_update_pointers (alloc->items, alloc->len);
DEBUG_ASSERT (alloc->len <= alloc->items_len);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]