Remove MSVC compiler warning.

This commit is contained in:
bakpakin
2023-06-25 17:29:09 -05:00
parent b219b146fa
commit 4b7b285aa9
3 changed files with 3 additions and 3 deletions
+1 -1
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)
+1 -1
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);
}
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# Format all code with astyle