Skip to content

Commit

Permalink
Merge pull request #522 from samyk/report-invalid-opcode
Browse files Browse the repository at this point in the history
show INVALID opcode properly if < 0
  • Loading branch information
zrax authored Oct 13, 2024
2 parents dc6ca4a + bbc1988 commit 5e1c403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 5e1c403

Please sign in to comment.