Merge pull request #522 from samyk/report-invalid-opcode

show INVALID opcode properly if < 0
This commit is contained in:
Michael Hansen
2024-10-13 09:54:24 -07:00
committed by GitHub

View File

@@ -2474,7 +2474,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
}
break;
default:
fprintf(stderr, "Unsupported opcode: %s\n", Pyc::OpcodeName(opcode & 0xFF));
fprintf(stderr, "Unsupported opcode: %s (%d)\n", Pyc::OpcodeName(opcode), opcode);
cleanBuild = false;
return new ASTNodeList(defblock->nodes());
}