mirror of
https://github.com/janet-lang/janet
synced 2024-10-18 08:00:40 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
342a29c7be
commit
f5555d21b9
@ -2,6 +2,8 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## 1.35.2 - 2024-06-16
|
## 1.35.2 - 2024-06-16
|
||||||
|
- Add `bundle/add-bin` to make installing scripts easier. This also establishes a packaging convention for it.
|
||||||
|
- Let range take non-integer values.
|
||||||
- Fix some documentation typos.
|
- Fix some documentation typos.
|
||||||
- Allow using `:only` in import without quoting.
|
- Allow using `:only` in import without quoting.
|
||||||
|
|
||||||
|
@ -456,7 +456,7 @@ JANET_CORE_FN(janet_core_range,
|
|||||||
}
|
}
|
||||||
JanetArray *array = janet_array(int_count);
|
JanetArray *array = janet_array(int_count);
|
||||||
for (int32_t i = 0; i < int_count; i++) {
|
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;
|
array->count = int_count;
|
||||||
return janet_wrap_array(array);
|
return janet_wrap_array(array);
|
||||||
|
Loading…
Reference in New Issue
Block a user