From 5e9be99ef5a640b59b52ff83d29070672ed0758c Mon Sep 17 00:00:00 2001 From: Erik Berlin Date: Wed, 25 Jun 2025 16:13:54 -0700 Subject: [PATCH] Fix loop variable type in compile.c --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 2dc33c001a..7632feee6a 100644 --- a/compile.c +++ b/compile.c @@ -2484,7 +2484,7 @@ array_to_idlist(VALUE arr) RUBY_ASSERT(RB_TYPE_P(arr, T_ARRAY)); long size = RARRAY_LEN(arr); ID *ids = (ID *)ALLOC_N(ID, size + 1); - for (int i = 0; i < size; i++) { + for (long i = 0; i < size; i++) { VALUE sym = RARRAY_AREF(arr, i); ids[i] = SYM2ID(sym); }