From: Magnus Jacobsson Date: Tue, 1 Sep 2020 06:36:15 +0000 (+0200) Subject: Remove 2 -Wsign-conversion warnings in attr.c X-Git-Tag: 2.46.0~20^2^2~93^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3780d07551dbb86d043a352df0d67422619efd49;p=graphviz Remove 2 -Wsign-conversion warnings in attr.c --- diff --git a/lib/cgraph/attr.c b/lib/cgraph/attr.c index 2dde01caf..7094093f0 100644 --- a/lib/cgraph/attr.c +++ b/lib/cgraph/attr.c @@ -245,9 +245,9 @@ static void addattr(Agraph_t * g, Agobj_t * obj, Agsym_t * sym) if (sym->id >= MINATTR) attr->str = (char **) AGDISC(g, mem)->resize(AGCLOS(g, mem), attr->str, - sym->id * + (size_t) sym->id * sizeof(char *), - (sym->id + + ((size_t) sym->id + 1) * sizeof(char *)); attr->str[sym->id] = agstrdup(g, sym->defval); /* agmethod_upd(g,obj,sym); JCE and GN didn't like this. */