diff options
Diffstat (limited to 'sfx2/source/appl/linkmgr2.cxx')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 55f030cfcb52..591d96ac617f 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -139,7 +139,7 @@ void LinkManager::Remove( sal_uInt16 nPos, sal_uInt16 nCnt ) { if( nCnt && nPos < aLinkTbl.size() ) { - if( nPos + nCnt > aLinkTbl.size() ) + if (sal::static_int_cast<size_t>(nPos + nCnt) > aLinkTbl.size()) nCnt = aLinkTbl.size() - nPos; for( sal_uInt16 n = nPos; n < nPos + nCnt; ++n) |