summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-12 14:03:33 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-12 14:03:33 +0000
commitea258b3616e5a7038fa1a158287b21db84f365c4 (patch)
tree45009eb8cc5d0fc890279ffcb53372f31630454a /iseq.c
parentfe5fa9be03e2d68ee57962b25615399162aa7c7a (diff)
merges r22901 from trunk into ruby_1_9_1.
-- * iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index 146d52e304..69cdd7fe1d 100644
--- a/iseq.c
+++ b/iseq.c
@@ -851,6 +851,7 @@ rb_iseq_disasm(VALUE self)
VALUE child = rb_ary_new();
unsigned long size;
int i;
+ long l;
ID *tbl;
enum {header_minlen = 72};
@@ -862,9 +863,9 @@ rb_iseq_disasm(VALUE self)
rb_str_cat2(str, "== disasm: ");
rb_str_concat(str, iseq_inspect(iseqdat->self));
- if ((i = RSTRING_LEN(str)) < header_minlen) {
+ if ((l = RSTRING_LEN(str)) < header_minlen) {
rb_str_resize(str, header_minlen);
- memset(RSTRING_PTR(str) + i, '=', header_minlen - i);
+ memset(RSTRING_PTR(str) + l, '=', header_minlen - l);
}
rb_str_cat2(str, "\n");