summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
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 1f4f649e7d6..e34baa2f272 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);