From: fennecdjay Date: Wed, 3 Jul 2019 13:48:18 +0000 (+0200) Subject: :art: Ease c++ X-Git-Tag: nightly~2381^2~10 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fed11f93becb323213173f5116d2adc7123a4094;p=gwion.git :art: Ease c++ --- 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;