From bbc19885f442b1a1fde08343a5953ad5d69b7d37 Mon Sep 17 00:00:00 2001 From: samy kamkar Date: Sat, 12 Oct 2024 13:45:16 -0700 Subject: [PATCH] show INVALID opcode properly if < 0 --- ASTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASTree.cpp b/ASTree.cpp index 050eebfaf..1f419d0c9 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -2474,7 +2474,7 @@ PycRef BuildFromCode(PycRef 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()); }