diff options
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1344,7 +1344,15 @@ rb_insn_operand_intern(const rb_iseq_t *iseq, break; case TS_NUM: /* ULONG */ - ret = rb_sprintf("%"PRIuVALUE, op); + { + const char *type_str; + if (insn == BIN(branchiftype) && (type_str = rb_type_str((enum ruby_value_type)op)) != NULL) { + ret = rb_str_new_cstr(type_str); + } + else { + ret = rb_sprintf("%"PRIuVALUE, op); + } + } break; case TS_LINDEX:{ |