You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Explicit cast to long
This commit is contained in:
committed by
Leonid Fedorov
parent
5b166a9577
commit
07a7130e2a
@ -498,7 +498,7 @@ IDB_Decimal Func_round::getDecimalVal(Row& row, FunctionParm& parm, bool& isNull
|
||||
else
|
||||
x = ceil(x - 0.5);
|
||||
|
||||
decimal.value = x <= INT64_MIN ? INT64_MIN : x >= INT64_MAX ? INT64_MAX : int64_t(x);
|
||||
decimal.value = static_cast<long>(x <= INT64_MIN ? INT64_MIN : x >= INT64_MAX ? INT64_MAX : int64_t(x));
|
||||
decimal.scale = s;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user