aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:18:30 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:18:30 +0000
commit34cfdd2f67dca44cb677d9a06b8687cfc6172892 (patch)
treee5b4fed60a5fb5f0741777cbd42c13e9468a693f /compile.c
parentd0d0898c0ac29fa6debf0fa0e18844e83a63f831 (diff)
downloadruby-34cfdd2f67dca44cb677d9a06b8687cfc6172892.tar.gz
* compile.c (ibf_load_setup): cast to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52966 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 1f4f649e7d..e34baa2f27 100644
--- a/compile.c
+++ b/compile.c
@@ -8195,7 +8195,7 @@ ibf_load_iseq(const struct ibf_load *load, const rb_iseq_t *index_iseq)
static void
ibf_load_setup(struct ibf_load *load, VALUE loader_obj, VALUE str)
{
- if (RSTRING_LENINT(str) < sizeof(struct ibf_header)) {
+ if (RSTRING_LENINT(str) < (int)sizeof(struct ibf_header)) {
rb_raise(rb_eRuntimeError, "broken binary format");
}
RB_OBJ_WRITE(loader_obj, &load->str, str);