]> granicus.if.org Git - graphviz/commitdiff
Add missing parentheses.
authorEmden Gansner <erg@research.att.com>
Thu, 23 Feb 2012 16:22:48 +0000 (11:22 -0500)
committerEmden Gansner <erg@research.att.com>
Thu, 23 Feb 2012 16:22:48 +0000 (11:22 -0500)
tclpkg/gv/gv.cpp

index 29596413ef192d2a2c68eaa6f5a6b57d5b4da196..d3a3ea346bebd5436edbf3fddc6ae5a845bbcde5 100644 (file)
@@ -151,8 +151,8 @@ Agedge_t *edge(Agnode_t *t, Agnode_t *h)
     return agedge(agraphof(t), t, h, NULL, 1);
 #else
     // edges from/to the protonode are not permitted
-    if (agnameof(t)[0] == '\001' && strcmp (agnameof(t), "\001proto") == 0)
-      || (agnameof(h)[0] == '\001' && strcmp (agnameof(h), "\001proto") == 0)
+    if ((agnameof(t)[0] == '\001' && strcmp (agnameof(t), "\001proto") == 0)
+      || (agnameof(h)[0] == '\001' && strcmp (agnameof(h), "\001proto") == 0))
         return NULL;
     return agedge(t->graph, t, h);
 #endif