From 1ec7f046428a10c5ed25364eb4eed330908175ed Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 27 Dec 2018 13:19:16 -0500 Subject: [PATCH] Avoid warning in asm.c on windows. --- src/core/asm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/asm.c b/src/core/asm.c index 9776b903..e3897aaa 100644 --- a/src/core/asm.c +++ b/src/core/asm.c @@ -252,8 +252,8 @@ static int32_t doarg_1( case JANET_NUMBER: { double y = janet_unwrap_number(x); - if (y >= INT32_MIN && y <= INT32_MAX) { - ret = y; + if (janet_checkintrange(y)) { + ret = (int32_t) y; } else { goto error; }