diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msun/src/s_fabsl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/msun/src/s_fabsl.c b/lib/msun/src/s_fabsl.c index 3c986f4..f150ddd 100644 --- a/lib/msun/src/s_fabsl.c +++ b/lib/msun/src/s_fabsl.c @@ -35,6 +35,9 @@ long double fabsl(long double x) { - ((union IEEEl2bits *)&x)->bits.sign = 0; - return (x); + union IEEEl2bits u; + + u.e = x; + u.bits.sign = 0; + return (u.e); } |