From: Matthew Fernandez Date: Thu, 8 Jul 2021 03:38:22 +0000 (-0700) Subject: remove commented out assertion X-Git-Tag: 2.49.0~57^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb73995b90d68b8629efded75dc77212a553256c;p=graphviz remove commented out assertion I do not know why the comment says it is surprising the assertion fails. It seems perfectly normal to me that it would fail, as the correct condition is against *both* AGINEDGE and AGOUTEDGE as in the following line. --- diff --git a/lib/cgraph/grammar.y b/lib/cgraph/grammar.y index 9dd2a36c8..8694e1374 100644 --- a/lib/cgraph/grammar.y +++ b/lib/cgraph/grammar.y @@ -301,7 +301,6 @@ static void applyattrs(void *obj) } } else { - /* assert(AGTYPE(obj) == AGEDGE); surprising this fails */ assert((AGTYPE(obj) == AGINEDGE) || (AGTYPE(obj) == AGOUTEDGE)); assert(aptr->tag == T_atom); assert(streq(aptr->u.name,Key));