Fix bug of _swap.

This commit is contained in:
Patrick Pelissier committed 2017-08-20 21:51:05 +02:00
1 parent ca08c62244
commit 172e0bbe14
1 file changed
+2
+2
View File
@@ -447,6 +447,8 @@ typedef struct ilist_head_s {
ILISTI_CONTRACT(name, e); \
M_SWAP(struct ilist_head_s *, d->name.next, e->name.next); \
M_SWAP(struct ilist_head_s *, d->name.prev, e->name.prev); \
M_SWAP(struct ilist_head_s *, d->name.next->prev, e->name.next->prev); \
M_SWAP(struct ilist_head_s *, d->name.prev->next, e->name.prev->next); \
ILISTI_CONTRACT(name, d); \
ILISTI_CONTRACT(name, e); \
} \