diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-15 15:17:01 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-15 15:17:01 +0100 |
commit | 5e902a4a9a25a9e151b5d3945c68517bc0c73139 (patch) | |
tree | a2e314bc193f4bdd52bb45adfc12f2803c265469 /modules/fdlibm/src/s_expm1.cpp | |
parent | 6ca0b4704367f8804e0373cb439e6e17e5146e4a (diff) | |
download | UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.gz UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.lz UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.xz UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.zip |
Issue #1291 - Part 3: Update fdlibm to Sept 2019 version
Diffstat (limited to 'modules/fdlibm/src/s_expm1.cpp')
-rw-r--r-- | modules/fdlibm/src/s_expm1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fdlibm/src/s_expm1.cpp b/modules/fdlibm/src/s_expm1.cpp index 4c19485de..90ebc1698 100644 --- a/modules/fdlibm/src/s_expm1.cpp +++ b/modules/fdlibm/src/s_expm1.cpp @@ -187,7 +187,7 @@ expm1(double x) e = hxs*((r1-t)/(6.0 - x*t)); if(k==0) return x - (x*e-hxs); /* c is 0 */ else { - INSERT_WORDS(twopk,0x3ff00000+(k<<20),0); /* 2^k */ + INSERT_WORDS(twopk,((u_int32_t)(0x3ff+k))<<20,0); /* 2^k */ e = (x*(e-c)-c); e -= hxs; if(k== -1) return 0.5*(x-e)-0.5; |