diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-07-11 12:10:56 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-07-15 18:40:28 +0200 |
commit | fd4129ef6116adfcda39acac7fb6d28211464a72 (patch) | |
tree | 97cbd0b01cec18373226ea5d36e0981bf7ec266f /l10ntools | |
parent | 5085fb2b0a8e74e5cdc67487c05c605570e8c71b (diff) |
fix std::max mismatched type compile snafu
Change-Id: Ia6572f8c648168053ae327fa995fc4f33029ab33
Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/helper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |