Fix the iterators calculation of _splice_at.
NOTE: iterator seems broken for _splice_back. To check
This commit is contained in:
1 parent
187b6cf072
commit
e62ae9fb94
1 file changed
+5
-1
+5
-1
@@ -472,7 +472,11 @@ typedef struct ilist_head_s {
|
||||
(void) olist, (void) nlist; \
|
||||
type *obj = M_C(name, _ref)(opos); \
|
||||
type *refObj = M_C(name, _ref)(npos); \
|
||||
M_C(name, _it_set)(npos, opos); \
|
||||
/* Set npos iterator to new position of object */ \
|
||||
npos->previous = &refObj->name; \
|
||||
npos->current = &obj->name; \
|
||||
npos->next = refObj->name.next; \
|
||||
/* Move iterator in old list */ \
|
||||
M_C(name, _next)(opos); \
|
||||
M_C(name, _unlink)(obj); \
|
||||
M_C(name, _push_after)(refObj, obj); \
|
||||
|
||||
Reference in new issue
Block a user