aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 1a826fbc54..ce1878e654 100644
--- a/gc.c
+++ b/gc.c
@@ -314,7 +314,7 @@ ruby_xmalloc(size_t size)
void *
ruby_xmalloc2(size_t n, size_t size)
{
- long len = size * n;
+ size_t len = size * n;
if (n != 0 && size != len / n) {
rb_raise(rb_eArgError, "malloc: possible integer overflow");
}