You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Hex ARM convertion
This commit is contained in:
@@ -95,7 +95,7 @@ string Func_hex::getStrVal(rowgroup::Row& row, FunctionParm& parm, bool& isNull,
|
|||||||
if ((val <= (double)numeric_limits<int64_t>::min()) || (val >= (double)numeric_limits<int64_t>::max()))
|
if ((val <= (double)numeric_limits<int64_t>::min()) || (val >= (double)numeric_limits<int64_t>::max()))
|
||||||
dec = ~(int64_t)0;
|
dec = ~(int64_t)0;
|
||||||
else
|
else
|
||||||
dec = (uint64_t)(val + (val > 0 ? 0.5 : -0.5));
|
dec = static_cast<uint64_t>(static_cast<int64_t>(val + (val > 0 ? 0.5 : -0.5)));
|
||||||
|
|
||||||
retval = helpers::convNumToStr(dec, ans, 16);
|
retval = helpers::convNumToStr(dec, ans, 16);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user