diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 20:19:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 20:19:24 +0000 |
commit | f61b80079e086e9fbeb767b80992a1abada1c719 (patch) | |
tree | fb25dae7c6652b38456f1680992307e6cf90e91e /iseq.c | |
parent | d7720b2fc00aa448c4d00eeb28ffc3e6c2c31bf4 (diff) | |
download | ruby-f61b80079e086e9fbeb767b80992a1abada1c719.tar.gz |
* iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -860,6 +860,7 @@ rb_iseq_disasm(VALUE self) VALUE child = rb_ary_new(); unsigned long size; int i; + long l; ID *tbl; enum {header_minlen = 72}; @@ -871,9 +872,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"); |