From f5555d21b97085182f80f9539e6abeab16e3bc7d Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 13 Jul 2024 12:43:35 -0500 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ src/core/corelib.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2398c402..da9aa190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. ## 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. - Allow using `:only` in import without quoting. diff --git a/src/core/corelib.c b/src/core/corelib.c index 2f09b910..a59013a9 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -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);