mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 09:47:17 +00:00
Avoid warning in asm.c on windows.
This commit is contained in:
parent
59f6c335ad
commit
1ec7f04642
@ -252,8 +252,8 @@ static int32_t doarg_1(
|
|||||||
case JANET_NUMBER:
|
case JANET_NUMBER:
|
||||||
{
|
{
|
||||||
double y = janet_unwrap_number(x);
|
double y = janet_unwrap_number(x);
|
||||||
if (y >= INT32_MIN && y <= INT32_MAX) {
|
if (janet_checkintrange(y)) {
|
||||||
ret = y;
|
ret = (int32_t) y;
|
||||||
} else {
|
} else {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user