From: Gunnar Beutner Date: Wed, 2 Nov 2016 07:42:24 +0000 (+0100) Subject: Fix integer truncation in Convert::ToString X-Git-Tag: v2.6.0~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f48e99c710d65147fc0af8aa8a48478f1852c278;p=icinga2 Fix integer truncation in Convert::ToString fixes #12995 --- diff --git a/lib/base/convert.cpp b/lib/base/convert.cpp index 5454a2fc0..e563fe837 100644 --- a/lib/base/convert.cpp +++ b/lib/base/convert.cpp @@ -39,7 +39,7 @@ String Convert::ToString(double val) double fractional = std::modf(val, &integral); if (fractional == 0) - return Convert::ToString(static_cast(val)); + return Convert::ToString(static_cast(val)); std::ostringstream msgbuf; msgbuf << std::fixed << val;