summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--iseq.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d487c0b700..4df8fa1289 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Aug 17 01:24:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (ruby_iseq_disasm): fix to show arg_simple value.
+
Fri Aug 17 01:21:29 2007 Koichi Sasada <ko1@atdot.net>
* insns.def (throw): insert a RUBY_VM_CHECK_INTS(). [ruby-dev:31361]
diff --git a/iseq.c b/iseq.c
index 091faef58f..e9e65c76fa 100644
--- a/iseq.c
+++ b/iseq.c
@@ -809,11 +809,11 @@ ruby_iseq_disasm(VALUE self)
if (tbl) {
snprintf(buff, sizeof(buff),
"local table (size: %d, argc: %d "
- "[opts: %d, rest: %d, post: %d, block: %d] %s)\n",
+ "[opts: %d, rest: %d, post: %d, block: %d] s%d)\n",
iseqdat->local_size, iseqdat->argc,
iseqdat->arg_opts, iseqdat->arg_rest,
iseqdat->arg_post_len, iseqdat->arg_block,
- iseqdat->arg_simple ? "s" : "c");
+ iseqdat->arg_simple);
rb_str_cat2(str, buff);
for (i = 0; i < iseqdat->local_table_size; i++) {