From 8a6b44cb4e0f59d4752482c92f2cd4cda1aebab1 Mon Sep 17 00:00:00 2001 From: Florian Beeres Date: Sat, 11 Jan 2025 22:42:58 +0100 Subject: [PATCH] docstring int/to-number: supports int64, not int32 Update the cfun_to_number docstring to indicate that it handles values up to JANET_INTMAX_INT64 (75845c028364b8a25f06d620a61851cfa4505e64), rather than up to int32, what the current docstring says. --- src/core/inttypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/inttypes.c b/src/core/inttypes.c index f26dbdf6..39ef4ea6 100644 --- a/src/core/inttypes.c +++ b/src/core/inttypes.c @@ -205,7 +205,7 @@ JANET_CORE_FN(cfun_it_u64_new, JANET_CORE_FN(cfun_to_number, "(int/to-number value)", - "Convert an int/u64 or int/s64 to a number. Fails if the number is out of range for an int32.") { + "Convert an int/u64 or int/s64 to a number. Fails if the number is out of range for an int64.") { janet_fixarity(argc, 1); if (janet_type(argv[0]) == JANET_ABSTRACT) { void *abst = janet_unwrap_abstract(argv[0]);