summaryrefslogtreecommitdiff
path: root/src/math/fabsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/fabsl.c')
-rw-r--r--src/math/fabsl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/fabsl.c b/src/math/fabsl.c
index 711d908a..c4f36ec2 100644
--- a/src/math/fabsl.c
+++ b/src/math/fabsl.c
@@ -9,7 +9,7 @@ long double fabsl(long double x)
{
union ldshape u = {x};
- u.bits.sign = 0;
- return u.value;
+ u.i.se &= 0x7fff;
+ return u.f;
}
#endif