From: Michael Schroeder Date: Wed, 19 Sep 2018 16:20:57 +0000 (+0200) Subject: Add some casts so that the C++ compiler does not complain X-Git-Tag: 0.7.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3aea75000f4917f961316d32b797ed7bd4b0ef;p=thirdparty%2Flibsolv.git Add some casts so that the C++ compiler does not complain --- diff --git a/src/repodata.h b/src/repodata.h index 3ac7e5b1..e255c928 100644 --- a/src/repodata.h +++ b/src/repodata.h @@ -343,13 +343,13 @@ repodata_translate_dir(Repodata *data, Repodata *fromdata, Id dir, int create, I static inline Id * repodata_create_dirtranscache(Repodata *data) { - return solv_calloc(256, sizeof(Id) * 2); + return (Id *)solv_calloc(256, sizeof(Id) * 2); } static inline Id * repodata_free_dirtranscache(Id *cache) { - return solv_free(cache); + return (Id *)solv_free(cache); }