aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:06:13 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:06:13 +0000
commitecd551e24f580ae8f5acbbb4650f3ac9fa3a3486 (patch)
tree7a3500847ea930ce400ccbf8a188fe8140aaadb3 /compile.c
parent3de19899647148aaf04c5c847bb202b1c7a48d32 (diff)
downloadruby-ecd551e24f580ae8f5acbbb4650f3ac9fa3a3486.tar.gz
* compile.c (iseq_ibf_dump): fix for clang type checker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52954 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 bd1497823d..fd0af93c76 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 = RSTRING_LEN(opt_str) + 1;
+ header.extra_size = (unsigned int)RSTRING_LEN(opt_str) + 1;
ibf_dump_write(&dump, RSTRING_PTR(opt_str), header.extra_size);
}
else {