diff --git a/array.c b/array.c index b1149298786..e9a4a608e14 100644 --- a/array.c +++ b/array.c @@ -7822,7 +7822,7 @@ rb_ary_product(int argc, VALUE *argv, VALUE ary) volatile VALUE t0 = rb_ary_hidden_new(n); volatile VALUE t1 = Qundef; VALUE *arrays = RARRAY_PTR(t0); /* The arrays we're computing the product of */ - int *counters = ALLOCV_N(int, t1, n); /* The current position in each one */ + rb_len_t *counters = ALLOCV_N(rb_len_t, t1, n); /* The current position in each one */ VALUE result = Qnil; /* The array we'll be returning, when no block given */ rb_len_t i,j; rb_len_t resultlen = 1;