summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index f8fb90e7a9..186f8622e7 100644
--- a/iseq.c
+++ b/iseq.c
@@ -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:{