]> granicus.if.org Git - graphviz/commitdiff
fix print of an AGSEQ
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Oct 2020 16:24:33 +0000 (09:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Oct 2020 01:46:51 +0000 (18:46 -0700)
This squashes a build warning on macOS when using CMake. Related to !1620.

lib/fdpgen/layout.c

index e0bf9d6d9544dc795843105e971efffbaacf5690..935a59a7487661696b924ce9e8be17221a88a32f 100644 (file)
@@ -322,8 +322,8 @@ static char *portName(graph_t * g, bport_t * p)
     node_t *t = agtail(e);
     static char buf[BSZ + 1];
 
-       sprintf(buf, "_port_%s_(%d)_(%d)_%ld",agnameof(g), ND_id(t), ND_id(h),
-               (uint64_t)AGSEQ(e));
+       sprintf(buf, "_port_%s_(%d)_(%d)_%u",agnameof(g), ND_id(t), ND_id(h),
+               AGSEQ(e));
     return buf;
 }