From: Matthew Fernandez Date: Wed, 14 Sep 2022 01:40:02 +0000 (-0700) Subject: dotgen cloneNode: squash -Wsign-conversion warning X-Git-Tag: 6.0.2~38^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d672362b9e6831139852e0a4fb21f84332fa86f0;p=graphviz dotgen cloneNode: squash -Wsign-conversion warning --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 13e10fc27..d15720467 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -983,7 +983,7 @@ static node_t *cloneNode(graph_t *g, node_t *orign) { agbindrec(n, "Agnodeinfo_t", sizeof(Agnodeinfo_t), true); agcopyattr (orign, n); if (shapeOf(orign) == SH_RECORD) { - int lbllen = strlen(ND_label(orign)->text); + size_t lbllen = strlen(ND_label(orign)->text); char* buf = gv_calloc(lbllen + 3, sizeof(char)); sprintf (buf, "{%s}", ND_label(orign)->text); agset (n, "label", buf);