summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r--sal/rtl/math.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index f8a0f9dcec47..4b149b9f99dd 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -443,7 +443,7 @@ inline void doubleToString(typename T::String ** pResult,
// Round the number
if(nDigits >= 0)
{
- if ((fValue += nRoundVal[nDigits > 15 ? 15 : nDigits] ) >= 10)
+ if ((fValue += nRoundVal[std::min<sal_Int32>(nDigits, 15)] ) >= 10)
{
fValue = 1.0;
nExp++;