From fed11f93becb323213173f5116d2adc7123a4094 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 3 Jul 2019 15:48:18 +0200 Subject: [PATCH] :art: Ease c++ --- include/oo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/oo.h b/include/oo.h index 9b44c414..1dc06485 100644 --- a/include/oo.h +++ b/include/oo.h @@ -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; -- 2.43.0