diff --git a/ASTree.cpp b/ASTree.cpp index 4a33bffeb..840d55799 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -1473,9 +1473,7 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) { PycRef 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)); }