mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
iseq.c (rb_iseq_disasm_insn): Change the width of insn names
Currently "trace_opt_send_without_block" (28 letters) is the longest insn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d64c9c78cb
commit
8bfc46a117
1 changed files with 2 additions and 2 deletions
4
iseq.c
4
iseq.c
|
@ -1831,10 +1831,10 @@ rb_iseq_disasm_insn(VALUE ret, const VALUE *code, size_t pos,
|
|||
|
||||
insn_name_buff = insn_name(insn);
|
||||
if (1) {
|
||||
rb_str_catf(str, "%04"PRIuSIZE" %-16s ", pos, insn_name_buff);
|
||||
rb_str_catf(str, "%04"PRIuSIZE" %-28s ", pos, insn_name_buff);
|
||||
}
|
||||
else {
|
||||
rb_str_catf(str, "%04"PRIuSIZE" %-16.*s ", pos,
|
||||
rb_str_catf(str, "%04"PRIuSIZE" %-28.*s ", pos,
|
||||
(int)strcspn(insn_name_buff, "_"), insn_name_buff);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue