[Libreoffice-commits] core.git: sc/source
Pelin Kuran (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 21 14:20:08 UTC 2020
sc/source/core/tool/jumpmatrix.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6cfdff7892bb5ee7c252886a6bad798979ae65f6
Author: Pelin Kuran <pelinrkuran at gmail.com>
AuthorDate: Fri Jan 31 16:04:35 2020 +0300
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Feb 21 15:19:30 2020 +0100
tdf#114441: Convert use of sal_uLong to better integer types
Change-Id: If530139af18f26cf0fcdd84fa36df6a5367d6b23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87767
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sc/source/core/tool/jumpmatrix.cxx b/sc/source/core/tool/jumpmatrix.cxx
index 2bf712f649de..38fd4ab82d41 100644
--- a/sc/source/core/tool/jumpmatrix.cxx
+++ b/sc/source/core/tool/jumpmatrix.cxx
@@ -65,7 +65,7 @@ void ScJumpMatrix::GetDimensions(SCSIZE& rCols, SCSIZE& rRows) const
void ScJumpMatrix::SetJump(SCSIZE nCol, SCSIZE nRow, double fBool,
short nStart, short nNext)
{
- mvJump[static_cast<sal_uLong>(nCol) * nRows + nRow].SetJump(fBool, nStart, nNext, SHRT_MAX);
+ mvJump[static_cast<sal_uInt64>(nCol) * nRows + nRow].SetJump(fBool, nStart, nNext, SHRT_MAX);
}
void ScJumpMatrix::GetJump(
@@ -84,14 +84,14 @@ void ScJumpMatrix::GetJump(
nCol = 0;
nRow = 0;
}
- mvJump[static_cast<sal_uLong>(nCol) * nRows + nRow].
+ mvJump[static_cast<sal_uInt64>(nCol) * nRows + nRow].
GetJump(rBool, rStart, rNext, rStop);
}
void ScJumpMatrix::SetAllJumps(double fBool, short nStart, short nNext, short nStop)
{
- sal_uLong n = static_cast<sal_uLong>(nCols) * nRows;
- for (sal_uLong j = 0; j < n; ++j)
+ sal_uInt64 n = static_cast<sal_uInt64>(nCols) * nRows;
+ for (sal_uInt64 j = 0; j < n; ++j)
{
mvJump[j].SetJump(fBool, nStart,
nNext, nStop);
More information about the Libreoffice-commits
mailing list