diff options
-rw-r--r-- | lib/quickjs/quickjs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index aea545a6..4fd42aac 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -10846,7 +10846,7 @@ static int JS_ToInt64SatFree(JSContext *ctx, int64_t *pres, JSValue val) } else { if (d < INT64_MIN) *pres = INT64_MIN; - else if (d > INT64_MAX) + else if (d >= (double)INT64_MAX) *pres = INT64_MAX; else *pres = (int64_t)d; |