mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix loop variable type in compile.c
This commit is contained in:
parent
4b1de7378d
commit
5e9be99ef5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue