Skip to content

Commit 5e1c403

Browse files
authored
Merge pull request #522 from samyk/report-invalid-opcode
show INVALID opcode properly if < 0
2 parents dc6ca4a + bbc1988 commit 5e1c403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ASTree.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
24742474
}
24752475
break;
24762476
default:
2477-
fprintf(stderr, "Unsupported opcode: %s\n", Pyc::OpcodeName(opcode & 0xFF));
2477+
fprintf(stderr, "Unsupported opcode: %s (%d)\n", Pyc::OpcodeName(opcode), opcode);
24782478
cleanBuild = false;
24792479
return new ASTNodeList(defblock->nodes());
24802480
}

0 commit comments

Comments
 (0)