summaryrefslogtreecommitdiff
diff options
authorErik Berlin <[email protected]>2025-06-25 16:13:54 -0700
committerNobuyoshi Nakada <[email protected]>2025-06-26 13:28:24 +0900
commit5e9be99ef5a640b59b52ff83d29070672ed0758c (patch)
treea45c9fb17ef9a92f958bb672337619caf1ff5958
parent4b1de7378d038109d85b5ab8b817de13c1217a3f (diff)
Fix loop variable type in compile.cHEADmaster
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
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);
}