From 3dea6535fbb81e28790ad4f52f5725b3c15d3765 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Wed, 13 Nov 2019 01:52:55 +0200 Subject: [PATCH] fix double_to_bits (copypaste fail) --- src/util/crap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/crap.h b/src/util/crap.h index ecc5e943..45c7c4be 100644 --- a/src/util/crap.h +++ b/src/util/crap.h @@ -35,8 +35,8 @@ INLINE float bits_to_float(uint32_t i) { return ((FloatBits) { .bits = i }).val; } -INLINE uint32_t double_to_bits(float f) { - return ((DoubleBits) { .val = f }).bits; +INLINE uint64_t double_to_bits(double d) { + return ((DoubleBits) { .val = d }).bits; } INLINE double bits_to_double(uint64_t i) {