aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:12:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:12:11 +0000
commit6a105387ce4ed959bbc5952ad563de9a4bce1aee (patch)
treee8410e436fad7fdd508e6be6ab39f7660b420647 /compile.c
parentb8574cdcffc656e5d6f8f613f6bad6e2f531e561 (diff)
downloadruby-6a105387ce4ed959bbc5952ad563de9a4bce1aee.tar.gz
suppress warnings
* compile.c (iseq_ibf_dump): check lenght overflow. * vm_core.h (rb_iseq_check): suppress unused-value warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52955 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 fd0af93c76..5ba4af476a 100644
--- a/compile.c
+++ b/compile.c
@@ -8062,7 +8062,7 @@ iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt)
if (RTEST(opt)) {
VALUE opt_str = rb_check_string_type(opt);
- header.extra_size = (unsigned int)RSTRING_LEN(opt_str) + 1;
+ header.extra_size = RSTRING_LENINT(opt_str) + 1;
ibf_dump_write(&dump, RSTRING_PTR(opt_str), header.extra_size);
}
else {