0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-25 05:10:15 +00:00
Files
2024-03-17 12:56:13 +02:00

21 lines
756 B
Diff

--- a/quickjs.c 2024-03-16 23:53:53.862708243 +0800
+++ b/quickjs.c 2024-03-16 23:54:59.746708218 +0800
@@ -10771,7 +10771,7 @@ static int JS_ToInt64SatFree(JSContext *
} 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;
@@ -55329,7 +55329,7 @@ static JSValue js_atomics_wait(JSContext
}
if (JS_ToFloat64(ctx, &d, argv[3]))
return JS_EXCEPTION;
- if (isnan(d) || d > INT64_MAX)
+ if (isnan(d) || d > (double)INT64_MAX)
timeout = INT64_MAX;
else if (d < 0)
timeout = 0;