diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-16 01:12:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-16 03:37:27 +0100 |
commit | 47da977f5a2c90d28e7573b03203ac467159c23b (patch) | |
tree | f7309fadab7fce476dbb3531df96d2e4e55f2668 /sc/source/core/data/documen3.cxx | |
parent | c3e573ce863bb9ff749d4be17692e245898d580f (diff) |
coverity: prevent integer overflow
Change-Id: If22c897ff97c584e98ab95301f89ed5c5b8bf7c2
Diffstat (limited to 'sc/source/core/data/documen3.cxx')
-rw-r--r-- | sc/source/core/data/documen3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 944241b0bc72..8e0fa5baacf8 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -1676,7 +1676,7 @@ static bool lcl_AddTwipsWhile( long & rTwips, long nStopTwips, SCROW & rPosY, SC { sal_Int64 nDiff = nAdd + rTwips - nStopTwips; nRows -= static_cast<SCROW>(nDiff / nHeight); - nAdd = nHeight * nRows; + nAdd = static_cast<sal_Int64>(nHeight) * nRows; // We're looking for a value that satisfies loop condition. if (nAdd + rTwips >= nStopTwips) { |