mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Improve LLVM compatibility a little bit
This commit is contained in:
parent
3057315a1b
commit
1a3d22b2fd
7 changed files with 14 additions and 12 deletions
2
third_party/quickjs/quickjs.c
vendored
2
third_party/quickjs/quickjs.c
vendored
|
@ -10731,7 +10731,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue