From: Magnus Jacobsson Date: Thu, 27 Aug 2020 14:38:02 +0000 (+0200) Subject: Remove 1 -Wconversion warning in idalloc X-Git-Tag: 2.46.0~20^2^2~93^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df847805dea9530546585248161dddd1e67152dd;p=graphviz Remove 1 -Wconversion warning in idalloc It's safe to cast to int from long since the value is always FALSE (0). --- diff --git a/lib/cgraph/id.c b/lib/cgraph/id.c index de6712850..6f61c0a8a 100644 --- a/lib/cgraph/id.c +++ b/lib/cgraph/id.c @@ -119,7 +119,7 @@ int agmapnametoid(Agraph_t * g, int objtype, char *str, int agallocid(Agraph_t * g, int objtype, IDTYPE request) { - return AGDISC(g, id)->alloc(AGCLOS(g, id), objtype, request); + return (int) AGDISC(g, id)->alloc(AGCLOS(g, id), objtype, request); } void agfreeid(Agraph_t * g, int objtype, IDTYPE id)