1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

A pack of fixes for compilation errors and warnings for all platforms

Add libdatatypes.so into debian packaging
This commit is contained in:
Roman Nozdrin
2020-11-18 13:44:27 +00:00
parent 31e0909552
commit aa44bca473
13 changed files with 76 additions and 23 deletions

View File

@ -86,10 +86,10 @@ string Func_elt::getStrVal(rowgroup::Row& row,
int128_t tmpval = d.s128Value / scaleDivisor;
int128_t lefto = (d.s128Value - tmpval * scaleDivisor) / scaleDivisor2;
if (utils::is_nonnegative(tmpval) >= 0 && lefto > 4)
if (utils::is_nonnegative(tmpval) && lefto > 4)
tmpval++;
if (utils::is_negative(tmpval) < 0 && lefto < -4)
if (utils::is_negative(tmpval) && lefto < -4)
tmpval--;
number = datatypes::Decimal::getInt64FromWideDecimal(tmpval);