Update bytecode.cpp

Co-authored-by: Michael Hansen <zrax0111@gmail.com>
This commit is contained in:
ncaklovic
2024-02-28 12:34:15 +01:00
committed by GitHub
parent 5f225caf52
commit 28b62b6534

View File

@@ -391,7 +391,7 @@ void bc_disasm(std::ostream& pyc_output, PycRef<PycCode> code, PycModule* mod,
case Pyc::LOAD_FROM_DICT_OR_GLOBALS_A:
try {
auto arg = operand;
if (opcode == Pyc::LOAD_ATTR_A && mod->verCompare(3, 12) >= 0 && (arg & 1))
if (opcode == Pyc::LOAD_ATTR_A && mod->verCompare(3, 12) >= 0)
arg >>= 1;
formatted_print(pyc_output, "%d: %s", operand, code->getName(arg)->value());
} catch (const std::out_of_range &) {