diff --git a/ASTree.cpp b/ASTree.cpp index 62bb4eb..55d9c2b 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -1754,7 +1754,7 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) * If it's a comprehension, the only POP_TOP should be * a call to append the iter to the list. */ - if (value.type() == ASTNode::NODE_CALL) { + if (value.type() == ASTNode::NODE_CALL && !value.cast()->pparams().empty() ) { PycRef res = value.cast()->pparams().front(); stack.push(new ASTComprehension(res));