From 187b6cf0720a15568318cbb91e6216937a8b1678 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 28 May 2018 23:46:30 +0200 Subject: [PATCH] Update to new specification. --- m-i-list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/m-i-list.h b/m-i-list.h index 4400bab1..370c5687 100644 --- a/m-i-list.h +++ b/m-i-list.h @@ -471,8 +471,10 @@ typedef struct ilist_head_s { assert (npos != NULL && opos != NULL); \ (void) olist, (void) nlist; \ type *obj = M_C(name, _ref)(opos); \ - M_C(name, _unlink)(obj); \ type *refObj = M_C(name, _ref)(npos); \ + M_C(name, _it_set)(npos, opos); \ + M_C(name, _next)(opos); \ + M_C(name, _unlink)(obj); \ M_C(name, _push_after)(refObj, obj); \ ILISTI_CONTRACT(name, nlist); \ ILISTI_CONTRACT(name, olist); \