aboutsummaryrefslogtreecommitdiffstats
path: root/src/ieee_float.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ieee_float.h')
-rw-r--r--src/ieee_float.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ieee_float.h b/src/ieee_float.h
index adf2b6cf..a7f7cdf9 100644
--- a/src/ieee_float.h
+++ b/src/ieee_float.h
@@ -34,7 +34,7 @@ static const int dbl_subnormal_expt = -0x3FF - DBL_MANT_DIG + 2;
static inline uint64_t
double_to_rep(const double d)
{
- uint64_t rep;
+ uint64_t rep = 0;
memcpy(&rep, &d, sizeof(rep));
return rep;
}