summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-05-07 23:34:02 +0200
committerMichael Stahl <mstahl@redhat.com>2012-05-08 11:31:50 +0200
commitaea14bd0718c0eb40c02c0bc989a17096e6fa0be (patch)
treea17419abd0f70029e2a3428ebf4f47635e26aab1 /xmlhelp
parentb532fccca7c398a42d84fcb06deced60fa959819 (diff)
work around spurious signed overflow warnings
gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC): /rtl/ustring.hxx:1293:233: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 29bdc809e4a2..6cc30b7e59d1 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -563,7 +563,8 @@ bool URLParameter::scheme()
if( m_aExpr.compareToAscii( "vnd.sun.star.help:///", 21 ) == 0 )
{
sal_Int32 nLen = m_aExpr.getLength();
- rtl::OUString aLastStr = m_aExpr.copy( nLen - 6 );
+ rtl::OUString aLastStr =
+ m_aExpr.copy(sal::static_int_cast<sal_uInt32>(nLen) - 6);
if( aLastStr.compareToAscii( "DbPAR=" ) == 0 )
{
rtl::OUString aNewExpr = m_aExpr.copy( 0, 20 );