summaryrefslogtreecommitdiff
path: root/libquadmath/math/nanq.c
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/math/nanq.c')
-rw-r--r--libquadmath/math/nanq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libquadmath/math/nanq.c b/libquadmath/math/nanq.c
index bace4706459..52786d906c5 100644
--- a/libquadmath/math/nanq.c
+++ b/libquadmath/math/nanq.c
@@ -4,8 +4,8 @@ __float128
nanq (const char *tagp __attribute__ ((unused)))
{
// FIXME -- we should use the argument
- ieee854_float128 f;
- f.ieee.exponent = 0x7fff;
- f.ieee.mant_high = 0x1;
+ ieee854_float128 f = { 0 };
+ f.ieee_nan.exponent = 0x7fff;
+ f.ieee_nan.quiet_nan = 0x1;
return f.value;
}