summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/dbfunc3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index dcad0cbce885..996625e0491b 100644
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -1788,7 +1788,7 @@ bool ScDBFunc::DataPilotSort( const ScAddress& rPos, bool bAscending, sal_uInt16
nRank = itrSub->second;
if (!bAscending)
- nRank = nMemberCount - nRank - 1;
+ nRank = static_cast< sal_uInt16 >( nMemberCount - nRank - 1 );
aRankedNames[nRank] = aName;
}