From cc632da72ba7fe7e7f14b55e72a501afe930b329 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 11 Jul 2012 12:10:56 +0100 Subject: fix std::max mismatched type compile snafu Change-Id: Ia6572f8c648168053ae327fa995fc4f33029ab33 --- l10ntools/source/helper.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10ntools/source/helper.hxx b/l10ntools/source/helper.hxx index ee03eda3a162..cc33b71ff8ac 100644 --- a/l10ntools/source/helper.hxx +++ b/l10ntools/source/helper.hxx @@ -103,7 +103,7 @@ inline sal_Int32 indexOfAnyAsciiL( template< typename T > inline T abbreviate( T const & text, sal_Int32 start, sal_Int32 length) { - start = std::max(0, start); + start = std::max(sal_Int32(0), start); assert(start <= text.getLength()); return text.copy(start, std::min(text.getLength() - start, length)); } -- cgit