From 9fcf5bcb9d5989e0428c4b735f842b7dff9cd3e6 Mon Sep 17 00:00:00 2001 From: John Richards Date: Sat, 9 Oct 2021 22:35:33 -0400 Subject: [PATCH] Addresses code review comment --- ASTree.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ASTree.cpp b/ASTree.cpp index d6ee5c6..a0c3593 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -1111,8 +1111,7 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) PycRef 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: