1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-471 Fix GCC 6.3 support

isnan requires std:: namespace
This commit is contained in:
Andrew Hutchings
2016-12-16 10:07:32 +00:00
parent dd198d822a
commit e090917ca0

View File

@ -108,7 +108,7 @@ protected:
}
exponent = (int)floor(log10( fabs(floatVal)));
base = floatVal * pow(10, -1.0*exponent);
if (isnan(exponent) || isnan(base))
if (std::isnan(exponent) || std::isnan(base))
{
snprintf(buf, 20, "%f", floatVal);
fFloatStr = execplan::removeTrailing0(buf, 20);