mirror of
https://github.com/janet-lang/janet
synced 2025-11-28 04:55:13 +00:00
Update CHANGELOG.md
This commit is contained in:
@@ -456,7 +456,7 @@ JANET_CORE_FN(janet_core_range,
|
||||
}
|
||||
JanetArray *array = janet_array(int_count);
|
||||
for (int32_t i = 0; i < int_count; i++) {
|
||||
array->data[i] = janet_wrap_number(start + i * step);
|
||||
array->data[i] = janet_wrap_number(start + (double) i * step);
|
||||
}
|
||||
array->count = int_count;
|
||||
return janet_wrap_array(array);
|
||||
|
||||
Reference in New Issue
Block a user