diff options
Diffstat (limited to 'include/math.h')
-rw-r--r-- | include/math.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/math.h b/include/math.h index bbee62e..6ac91da 100644 --- a/include/math.h +++ b/include/math.h @@ -42,12 +42,14 @@ int __fpclassifyl(long double); static __inline unsigned __FLOAT_BITS(float __f) { - union {float __f; unsigned __i;} __u = {__f}; + union {float __f; unsigned __i;} __u; + __u.__f = __f; return __u.__i; } static __inline unsigned long long __DOUBLE_BITS(double __f) { - union {double __f; unsigned long long __i;} __u = {__f}; + union {double __f; unsigned long long __i;} __u; + __u.__f = __f; return __u.__i; } |