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

MCOL-174 fix compile errors

This commit is contained in:
David Hall
2019-08-22 16:39:02 -05:00
parent 418ceb73dc
commit 881410d397
7 changed files with 11 additions and 10 deletions

View File

@ -159,7 +159,7 @@ string Func_char::getStrVal(Row& row,
double dscale = d.scale;
// get decimal and round up
int value = d.value / pow(10.0, dscale);
int lefto = (d.value - value * pow(10.0, dscale)) / pow(dscale - 1);
int lefto = (d.value - value * pow(10.0, dscale)) / pow(10.0, dscale - 1);
if ( lefto > 4 )
value++;