From 8bd4b9cb3c9832421d572a14c6e1eb99dca5fbcc Mon Sep 17 00:00:00 2001 From: Stephen C North Date: Mon, 23 Dec 2019 21:18:13 -0500 Subject: [PATCH] an assert in applyattrs() is too restrictive when setting edge [key=something} as the object tag can be AGINEDGE not AGEDGE==AGOUTEDGE so we changed that --- lib/cgraph/grammar.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cgraph/grammar.y b/lib/cgraph/grammar.y index 127a7241a..2507c1243 100644 --- a/lib/cgraph/grammar.y +++ b/lib/cgraph/grammar.y @@ -318,7 +318,8 @@ static void applyattrs(void *obj) } } else { - assert(AGTYPE(obj) == AGEDGE); + /* 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)); } -- 2.40.0