]> granicus.if.org Git - graphviz/commitdiff
gv2gxl: use use a C99 bool when calling 'agsubedge'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Oct 2022 02:35:41 +0000 (19:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Oct 2022 02:35:41 +0000 (19:35 -0700)
The upper case versions of the boolean literals are legacy Graphviz-specific
values from when the code base was using a pre-C99 standard.

cmd/tools/gv2gxl.c

index 55727ddc4f7bdc3f56e4c5d11a55ea5a353311cc..bb529d3b90d18d106c994670eb1b5479c0b0c214 100644 (file)
@@ -692,7 +692,7 @@ static bool writeEdgeTest(Agraph_t *g, Agedge_t *e) {
 
     /* can use agedge() because we subverted the dict compar_f */
     for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) {
-       if (agsubedge(subg, e, FALSE))
+       if (agsubedge(subg, e, false))
            return false;
     }
     return true;