1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-06 10:33:03 +00:00

Remove MSVC compiler warning.

This commit is contained in:
bakpakin
2023-06-25 17:26:36 -05:00
parent b219b146fa
commit 4b7b285aa9
3 changed files with 3 additions and 3 deletions

View File

@@ -703,7 +703,7 @@ Janet janet_lengthv(Janet x) {
return janet_wrap_number(len);
#else
if (len < (size_t) JANET_INTMAX_INT64) {
return janet_wrap_number(len);
return janet_wrap_number((double) len);
} else {
janet_panicf("integer length %u too large", len);
}