Addresses code review comment

This commit is contained in:
John Richards
2021-10-09 22:35:33 -04:00
parent 588f24c872
commit 9fcf5bcb9d

View File

@@ -1111,8 +1111,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
PycRef<ASTNode> left = stack.top();
stack.pop();
// The operand will be 0 for 'is' and 1 for 'is not'.
// Map those back to the appropriate values in ASTCompare::op_str()
stack.push(new ASTCompare(left, right, operand ? 9 : 8));
stack.push(new ASTCompare(left, right, operand ? ASTCompare::CMP_IS_NOT : ASTCompare::CMP_IS));
}
break;
case Pyc::JUMP_IF_FALSE_A: