]> granicus.if.org Git - graphviz/commitdiff
is_nonconstraint: return a C99 bool instead of an ambiguous int
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Jan 2022 00:49:14 +0000 (16:49 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Jan 2022 15:51:35 +0000 (07:51 -0800)
lib/dotgen/rank.c

index 8f9a14416a1d2a99b0990525c4d96261e5281f90..053ced9622d9765c8f9156bafba8b5c1bbb4b3ab 100644 (file)
@@ -630,15 +630,15 @@ static int rankset_kind(graph_t * g)
     return NORANK;
 }
 
-static int is_nonconstraint(edge_t * e)
+static bool is_nonconstraint(edge_t * e)
 {
     char *constr;
 
     if (E_constr && (constr = agxget(e, E_constr))) {
        if (constr[0] && !mapbool(constr))
-           return TRUE;
+           return true;
     }
-    return FALSE;
+    return false;
 }
 
 static node_t *find(node_t * n)