From 64d164875fca205294e2ba6f3ce46d392dcfc5cf Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Thu, 2 Oct 2014 04:46:55 -0500 Subject: coverity#1242759 Result is not floating-point Change-Id: I3a358722279d574f96a2270b5dee84b85ddb402f --- xmloff/source/core/ProgressBarHelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx index a530970c1188..fcf2df5dd5a4 100644 --- a/xmloff/source/core/ProgressBarHelper.cxx +++ b/xmloff/source/core/ProgressBarHelper.cxx @@ -48,7 +48,7 @@ sal_Int32 ProgressBarHelper::ChangeReference(sal_Int32 nNewReference) { if (nReference) { - double fPercent(nNewReference / nReference); + double fPercent((double)nNewReference / nReference); double fValue(nValue * fPercent); nValue = static_cast(fValue); nReference = nNewReference; -- cgit