From 5a577553f794a0323d924b2ab10e300b4e5dcaee Mon Sep 17 00:00:00 2001 From: Leonid Fedorov Date: Thu, 24 Feb 2022 10:05:49 +0300 Subject: [PATCH] Hex double convertion --- utils/funcexp/func_hex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/funcexp/func_hex.cpp b/utils/funcexp/func_hex.cpp index 0e550d0e7..c1a111cb7 100644 --- a/utils/funcexp/func_hex.cpp +++ b/utils/funcexp/func_hex.cpp @@ -95,7 +95,7 @@ string Func_hex::getStrVal(rowgroup::Row& row, FunctionParm& parm, bool& isNull, if ((val <= (double)numeric_limits::min()) || (val >= (double)numeric_limits::max())) dec = ~(int64_t)0; else - dec = (uint64_t)(val + (val > 0 ? 0.5 : -0.5)); + dec = static_cast(static_cast(val + (val > 0 ? 0.5 : -0.5))); retval = helpers::convNumToStr(dec, ans, 16); break;