Skip to content

Commit

Permalink
Ensure there is always space after the opcode (some opcode names are …
Browse files Browse the repository at this point in the history
…longer than 30 characters now)
  • Loading branch information
zrax committed Dec 6, 2023
1 parent ab6aaf6 commit 7560149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void bc_disasm(std::ostream& pyc_output, PycRef<PycCode> code, PycModule* mod,

for (int i=0; i<indent; i++)
pyc_output << " ";
formatted_print(pyc_output, "%-7d %-30s", start_pos, Pyc::OpcodeName(opcode));
formatted_print(pyc_output, "%-7d %-30s ", start_pos, Pyc::OpcodeName(opcode));

if (opcode >= Pyc::PYC_HAVE_ARG) {
switch (opcode) {
Expand Down

0 comments on commit 7560149

Please sign in to comment.