1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 09:17:17 +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

@ -357,7 +357,7 @@ uninstall:
#################
format:
tools/format.sh
sh tools/format.sh
grammar: build/janet.tmLanguage
build/janet.tmLanguage: tools/tm_lang_gen.janet $(JANET_TARGET)

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);
}

2
tools/format.sh Executable file → Normal file
View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# Format all code with astyle