summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 903ff79d469..1cd78c7294c 100644
--- a/compile.c
+++ b/compile.c
@@ -612,7 +612,7 @@ compile_data_alloc(rb_iseq_t *iseq, size_t size)
}
ptr = (void *)&storage->buff[storage->pos];
- storage->pos += size;
+ storage->pos += (int)size;
return ptr;
}