]> granicus.if.org Git - graphviz/commitdiff
gvgen makeTreeGen: squash a 'time_t'→'unsigned' conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Mar 2022 04:18:39 +0000 (21:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 16:20:14 +0000 (09:20 -0700)
cmd/tools/graph_generator.c

index 12cbe3e30cdc697a563c016013aaaa4ee62d6948..9e330b6d7629b57ca7ecdc7e4d237bd7452ee71c 100644 (file)
@@ -774,7 +774,7 @@ makeTreeGen (int N)
     tg->T = genCnt(N);
     tg->sp = mkStack(N+1);
     tg->tp = mkTree(N+1);
-    srand(time(0));
+    srand((unsigned)time(0));
 
     return tg;
 }