]> Nishi Git Mirror - gwion.git/commitdiff
:art: Ease c++
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 3 Jul 2019 13:48:18 +0000 (15:48 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 3 Jul 2019 13:48:18 +0000 (15:48 +0200)
include/oo.h

index 9b44c4145661ea9107f5bbe48be0113830a5eb77..1dc06485eee42d062bb3c7ec80860495233a39f2 100644 (file)
@@ -13,7 +13,7 @@ typedef struct RefCount_ {
 
 #define HAS_OBJ RefCount* ref;
 ANN static inline RefCount* new_refcount(MemPool mp, void(*free)(void*,void*)) {
-  RefCount *ref = mp_calloc(mp, RefCount);
+  RefCount *ref = (RefCount*)mp_calloc(mp, RefCount);
   ref->count = 1;
   ref->free= free;
   return ref;