remove `#!/usr/bin/env sh`
[liba.git] / quickjs / 0003.patch
blobe685fb54fbd2dd3a79cb9df236307a56a738abf4
1 --- a/quickjs.c
2 +++ b/quickjs.c
3 @@ -10771,7 +10771,7 @@ static int JS_ToInt64SatFree(JSContext *
4 } else {
5 if (d < INT64_MIN)
6 *pres = INT64_MIN;
7 - else if (d > INT64_MAX)
8 + else if (d > (double)INT64_MAX)
9 *pres = INT64_MAX;
10 else
11 *pres = (int64_t)d;
12 @@ -55329,7 +55329,7 @@ static JSValue js_atomics_wait(JSContext
14 if (JS_ToFloat64(ctx, &d, argv[3]))
15 return JS_EXCEPTION;
16 - if (isnan(d) || d > INT64_MAX)
17 + if (isnan(d) || d > (double)INT64_MAX)
18 timeout = INT64_MAX;
19 else if (d < 0)
20 timeout = 0;