1
0
mirror of https://github.com/janet-lang/janet synced 2025-05-02 23:44:15 +00:00

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.
This commit is contained in:
Florian Beeres 2025-01-11 22:42:58 +01:00
parent 60d9f97750
commit 8a6b44cb4e

View File

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