From 5e425e402f666d9a08d1a906242860aa96d54d69 Mon Sep 17 00:00:00 2001 From: DankParrot Date: Mon, 3 Aug 2020 18:38:00 -0700 Subject: [PATCH] Add placeholder ReverseBytes for double --- src/util/ByteUtil.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/ByteUtil.h b/src/util/ByteUtil.h index 1a45e5c..bc4c0ee 100644 --- a/src/util/ByteUtil.h +++ b/src/util/ByteUtil.h @@ -27,4 +27,7 @@ namespace Feather inline int16_t ReverseBytes(int16_t n) { return int16_t(ReverseBytes(uint16_t(n))); } inline int32_t ReverseBytes(int32_t n) { return int32_t(ReverseBytes(uint32_t(n))); } inline int64_t ReverseBytes(int64_t n) { return int64_t(ReverseBytes(uint64_t(n))); } + + // FIXME: this maybe very wrong + inline double ReverseBytes(double d) { return (double)ReverseBytes((uint64_t)d); } } \ No newline at end of file