From e4252065d1a4d113ae66baace85765433e2085dd Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Sun, 2 Jan 2022 09:41:00 +0000 Subject: [PATCH] refact --- include/util/encode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/encode.h b/include/util/encode.h index 4164a7660f..3c98e8108f 100644 --- a/include/util/encode.h +++ b/include/util/encode.h @@ -236,7 +236,7 @@ static FORCE_INLINE int tEncodeFloat(SCoder* pEncoder, float val) { } static FORCE_INLINE int tEncodeDouble(SCoder* pEncoder, double val) { - union { + union { uint64_t ui; double d; } v = {.d = val};