aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:30:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:30:46 +0000
commitd83917ff70053cfb125e7cbad6d5a80795c00b05 (patch)
treee1333f8fb133044acb85e1325d823230bc5b5c94 /compile.c
parentb38723071663d490d33bbe7267858a4eaa653c6f (diff)
downloadruby-d83917ff70053cfb125e7cbad6d5a80795c00b05.tar.gz
* compile.c (iseq_ibf_dump): dump extra data just string length.
* sample/iseq_loader.rb: add using RubyVM::InstructionSequence.from_binary_format_extra_data method (commented out). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 4c4cc324df..31741ca598 100644
--- a/compile.c
+++ b/compile.c
@@ -8116,7 +8116,7 @@ iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt)
if (RTEST(opt)) {
VALUE opt_str = opt;
const char *ptr = StringValuePtr(opt_str);
- header.extra_size = RSTRING_LENINT(opt_str) + 1;
+ header.extra_size = RSTRING_LENINT(opt_str);
ibf_dump_write(dump, ptr, header.extra_size);
}
else {