summarylogtreecommitdiffstats
path: root/0006-Bug-531915-mozilla-bmo531915.patch.patch
blob: 5b8160997eec207320dc20fe81873623643d1ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Wolfgang Rosenauer <wr@rosenauer.org>
Date: Sun, 17 Oct 2021 20:18:18 +0200
Subject: [PATCH] Bug 531915 - mozilla-bmo531915.patch

https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
---
 modules/fdlibm/src/math_private.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
index b588a5905f40597f78f6a069ed6571f8cb74b57c..beae1f4c077b4cc527525f0ea09bbcdcd3380a44 100644
--- a/modules/fdlibm/src/math_private.h
+++ b/modules/fdlibm/src/math_private.h
@@ -30,9 +30,14 @@
  * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
  */
 
+#ifdef __i386__
+typedef long double __double_t;
+typedef long double __float_t;
+#else
 typedef double      __double_t;
-typedef __double_t  double_t;
 typedef float       __float_t;
+#endif
+typedef __double_t  double_t;
 
 /*
  * The original fdlibm code used statements like: