Kaydet (Commit) 8ac48304 authored tarafından Caolán McNamara's avatar Caolán McNamara

UL->U

Change-Id: I564e7604729f04e1fb9334b175c345938734640d
Reviewed-on: https://gerrit.libreoffice.org/47547Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e799e98c
...@@ -302,7 +302,7 @@ void BigInt::MultLong( const BigInt& rB, BigInt& rErg ) const ...@@ -302,7 +302,7 @@ void BigInt::MultLong( const BigInt& rB, BigInt& rErg ) const
{ {
nZ = (sal_uInt32)nNum[i] * (sal_uInt32)rB.nNum[j] + nZ = (sal_uInt32)nNum[i] * (sal_uInt32)rB.nNum[j] +
(sal_uInt32)rErg.nNum[i + j] + k; (sal_uInt32)rErg.nNum[i + j] + k;
rErg.nNum[i + j] = (sal_uInt16)(nZ & 0xffffUL); rErg.nNum[i + j] = (sal_uInt16)(nZ & 0xffffU);
k = nZ >> 16; k = nZ >> 16;
} }
rErg.nNum[i + j] = (sal_uInt16)k; rErg.nNum[i + j] = (sal_uInt16)k;
...@@ -349,7 +349,7 @@ void BigInt::DivLong( const BigInt& rB, BigInt& rErg ) const ...@@ -349,7 +349,7 @@ void BigInt::DivLong( const BigInt& rB, BigInt& rErg ) const
aTmpA.nNum[j - nLenB + i] = (sal_uInt16)nTmp; aTmpA.nNum[j - nLenB + i] = (sal_uInt16)nTmp;
nK = (sal_uInt16) (nTmp >> 16); nK = (sal_uInt16) (nTmp >> 16);
if ( nK ) if ( nK )
nK = (sal_uInt16)(0x10000UL - nK); nK = (sal_uInt16)(0x10000U - nK);
} }
sal_uInt16& rNum( aTmpA.nNum[j - nLenB + i] ); sal_uInt16& rNum( aTmpA.nNum[j - nLenB + i] );
rNum -= nK; rNum -= nK;
...@@ -416,7 +416,7 @@ void BigInt::ModLong( const BigInt& rB, BigInt& rErg ) const ...@@ -416,7 +416,7 @@ void BigInt::ModLong( const BigInt& rB, BigInt& rErg ) const
aTmpA.nNum[j - nLenB + i] = (sal_uInt16)nTmp; aTmpA.nNum[j - nLenB + i] = (sal_uInt16)nTmp;
nK = (sal_uInt16) (nTmp >> 16); nK = (sal_uInt16) (nTmp >> 16);
if ( nK ) if ( nK )
nK = (sal_uInt16)(0x10000UL - nK); nK = (sal_uInt16)(0x10000U - nK);
} }
sal_uInt16& rNum( aTmpA.nNum[j - nLenB + i] ); sal_uInt16& rNum( aTmpA.nNum[j - nLenB + i] );
rNum = rNum - nK; rNum = rNum - nK;
...@@ -560,11 +560,11 @@ BigInt::BigInt( sal_uInt32 nValue ) ...@@ -560,11 +560,11 @@ BigInt::BigInt( sal_uInt32 nValue )
: nVal(0) : nVal(0)
{ {
bIsSet = true; bIsSet = true;
if ( nValue & 0x80000000UL ) if ( nValue & 0x80000000U )
{ {
bIsBig = true; bIsBig = true;
bIsNeg = false; bIsNeg = false;
nNum[0] = (sal_uInt16)(nValue & 0xffffUL); nNum[0] = (sal_uInt16)(nValue & 0xffffU);
nNum[1] = (sal_uInt16)(nValue >> 16); nNum[1] = (sal_uInt16)(nValue >> 16);
nLen = 2; nLen = 2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment