From 4c37d0ce4f6cca6f1b76a47e96e670df6c10cd85 Mon Sep 17 00:00:00 2001 From: ddouworld Date: Sat, 4 Nov 2023 16:23:28 +0800 Subject: [PATCH] fix #396 Unsupported Node type: 27 --- ASTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASTree.cpp b/ASTree.cpp index c2794d3f3..9031e390a 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -432,7 +432,7 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) PycRef TOS = stack.top(); int TOS_type = TOS.type(); // bases are NODE_NAME at TOS - while (TOS_type == ASTNode::NODE_NAME) { + while (TOS_type == ASTNode::NODE_NAME || TOS_type == ASTNode::NODE_BINARY) { bases.resize(basecnt + 1); bases[basecnt] = TOS; basecnt++;