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 | 8311b3294e4bae26af6604b507578d08468ebb56 (patch) | |
| tree | fb25dae7c6652b38456f1680992307e6cf90e91e | |
| parent | be560f0c0f09b0f69ddf58bb858c6d287d68c28a (diff) | |
| download | ruby-8311b3294e4bae26af6604b507578d08468ebb56.tar.gz ruby-8311b3294e4bae26af6604b507578d08468ebb56.tar.xz ruby-8311b3294e4bae26af6604b507578d08468ebb56.zip | |
* iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | iseq.c | 5 |
2 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,6 @@ -Thu Mar 12 05:16:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Mar 12 05:19:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long. * process.c (rb_f_sleep): time() needs time_t. @@ -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"); |
