Make sure mozjs patch FixFpNormIssue.diff applies cleanly on i386

This commit is contained in:
Vincent Cheng
2025-02-15 01:34:24 -08:00
committed by Ralph Sennhauser
parent 82ff0ea90b
commit 026a668a0f
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ cd "$(dirname "$0")"
# This should match the version in config/milestone.txt # This should match the version in config/milestone.txt
FOLDER="mozjs-115.16.1" FOLDER="mozjs-115.16.1"
# If same-version changes are needed, increment this. # If same-version changes are needed, increment this.
LIB_VERSION="115.16.1+3" LIB_VERSION="115.16.1+4"
LIB_NAME="mozjs115" LIB_NAME="mozjs115"
fetch() fetch()
@@ -1,6 +1,6 @@
--- a/modules/fdlibm/src/math_private.h --- a/modules/fdlibm/src/math_private.h
+++ b/modules/fdlibm/src/math_private.h +++ b/modules/fdlibm/src/math_private.h
@@ -30,8 +30,13 @@ @@ -30,7 +30,11 @@
* Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
*/ */
@@ -10,10 +10,9 @@
typedef double __double_t; typedef double __double_t;
+#endif +#endif
typedef __double_t double_t; typedef __double_t double_t;
+typedef float __float_t; typedef float __float_t;
/*
* The original fdlibm code used statements like:
@@ -630,6 +634,53 @@ @@ -630,6 +634,53 @@
return ((double)(x + 0x1.8p52) - 0x1.8p52); return ((double)(x + 0x1.8p52) - 0x1.8p52);
} }