Skip to content

Commit

Permalink
fix #396 Unsupported Node type: 27
Browse files Browse the repository at this point in the history
  • Loading branch information
ddouworld committed Nov 4, 2023
1 parent b32f231 commit 4c37d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
PycRef<ASTNode> 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++;
Expand Down

0 comments on commit 4c37d0c

Please sign in to comment.