tools/source/generic/bigint.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 91263493eac70464fa6036cf9d8676e5ed452869 Author: Caolán McNamara <[email protected]> Date: Fri Oct 27 13:28:34 2017 +0100 ofz#3802 Integer-overflow Change-Id: Id631951119ed0a6b62ffe7d8342cd92191714114 Reviewed-on: https://gerrit.libreoffice.org/43943 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx index bef8de9f7a9e..a9b8eca1b97f 100644 --- a/tools/source/generic/bigint.cxx +++ b/tools/source/generic/bigint.cxx @@ -334,7 +334,7 @@ void BigInt::DivLong( const BigInt& rB, BigInt& rErg ) const nQ = (sal_uInt16)(((sal_uInt32)nTmp) / aTmpB.nNum[nLenB1]); if ( ((sal_uInt32)aTmpB.nNum[nLenB1 - 1] * nQ) > - ((((sal_uInt32)nTmp) - aTmpB.nNum[nLenB1] * nQ) << 16) + aTmpA.nNum[j - 2]) + ((((sal_uInt32)nTmp) - (sal_uInt32)aTmpB.nNum[nLenB1] * nQ) << 16) + aTmpA.nNum[j - 2]) nQ--; // Start division nK = 0;
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
