mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 23:40:27 +00:00
Remove MSVC compiler warning.
This commit is contained in:
parent
b219b146fa
commit
4b7b285aa9
2
Makefile
2
Makefile
@ -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)
|
||||
|
@ -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
2
tools/format.sh
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Format all code with astyle
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user