]> granicus.if.org Git - graphviz/commitdiff
dotgen cloneNode: squash -Wsign-conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 14 Sep 2022 01:40:02 +0000 (18:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 14 Sep 2022 01:40:02 +0000 (18:40 -0700)
lib/dotgen/dotsplines.c

index 13e10fc2756cbdf1336d9f06d48a61b772fabdce..d15720467f2689f42985e26eb71080f4f5b12a39 100644 (file)
@@ -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);