aboutsummaryrefslogtreecommitdiffstats
path: root/src/ieee_float.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-09-29 22:39:51 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commitfd48cffcc1838060bcc451300b38982776779c13 (patch)
tree6df1f08c1748ad255953a1b6a25a2366d8ba4bca /src/ieee_float.h
parent30d845380249d1de3a28e12407c5263629424c6d (diff)
downloadserd-fd48cffcc1838060bcc451300b38982776779c13.tar.gz
serd-fd48cffcc1838060bcc451300b38982776779c13.tar.bz2
serd-fd48cffcc1838060bcc451300b38982776779c13.zip
Add minimal soft floating point implementation
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;
}