Skip to content

Commit

Permalink
Update ASTree.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Hansen <[email protected]>
  • Loading branch information
ncaklovic and zrax authored Feb 28, 2024
1 parent 28b62b6 commit 32c1ca1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ASTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1473,9 +1473,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
{
PycRef<ASTNode> name = stack.top();
if (name.type() != ASTNode::NODE_IMPORT) {
auto arg = operand;
if (mod->verCompare(3, 12) >= 0 && (arg & 1))
arg >>= 1;
auto arg = (mod->verCompare(3, 12) >= 0) ? operand >> 1 : operand;
stack.pop();
stack.push(new ASTBinary(name, new ASTName(code->getName(arg)), ASTBinary::BIN_ATTR));
}
Expand Down

0 comments on commit 32c1ca1

Please sign in to comment.