fix list.h was not includable by C++

Tue, 11 Feb 2025 21:53:03 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 11 Feb 2025 21:53:03 +0100
changeset 1201
84fc692d2708
parent 1200
73efb59703a4
child 1202
f0aa627c37b6

fix list.h was not includable by C++

src/cx/list.h file | annotate | diff | comparison | revisions
--- a/src/cx/list.h	Tue Feb 11 21:47:12 2025 +0100
+++ b/src/cx/list.h	Tue Feb 11 21:53:03 2025 +0100
@@ -518,7 +518,7 @@
         CxIterator *iter,
         const void *elem
 ) {
-    CxList* list = iter->src_handle.m;
+    CxList* list = (CxList*)iter->src_handle.m;
     list->collection.sorted = false;
     return list->cl->insert_iter(iter, elem, 0);
 }
@@ -544,7 +544,7 @@
         CxIterator *iter,
         const void *elem
 ) {
-    CxList* list = iter->src_handle.m;
+    CxList* list = (CxList*)iter->src_handle.m;
     list->collection.sorted = false;
     return list->cl->insert_iter(iter, elem, 1);
 }

mercurial