1
0
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:
Calvin Rose
2024-07-13 12:43:35 -05:00
parent 342a29c7be
commit f5555d21b9
2 changed files with 3 additions and 1 deletions

View File

@@ -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);