Skip to content

Commit

Permalink
Fix integer truncation in Convert::ToString
Browse files Browse the repository at this point in the history
fixes #12995
  • Loading branch information
gunnarbeutner committed Nov 2, 2016
1 parent f1a8a74 commit f48e99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base/convert.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f48e99c

Please sign in to comment.