Fix integer truncation in Convert::ToString

fixes #12995
This commit is contained in:
Gunnar Beutner 2016-11-02 08:42:24 +01:00
parent f1a8a74b95
commit f48e99c710
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ String Convert::ToString(double val)
double fractional = std::modf(val, &integral);
if (fractional == 0)
return Convert::ToString(static_cast<long>(val));
return Convert::ToString(static_cast<long long>(val));
std::ostringstream msgbuf;
msgbuf << std::fixed << val;