changed: small changes in UInt::Div_CalculatingSize()

some warnings were raported by GCC
         (uninitialized variable)


git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@200 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2009-09-20 12:47:44 +00:00
parent f19078f9f1
commit 01a86e40d9
1 changed files with 5 additions and 2 deletions

View File

@ -1558,12 +1558,14 @@ private:
*/
uint Div_CalculatingSize(const UInt<value_size> & v, uint & m, uint & n)
{
for(n = value_size-1 ; n!=0 && v.table[n]==0 ; --n);
m = n = value_size-1;
for( ; n!=0 && v.table[n]==0 ; --n);
if( n==0 && v.table[n]==0 )
return 1;
for(m = value_size-1 ; m!=0 && table[m]==0 ; --m);
for( ; m!=0 && table[m]==0 ; --m);
if( m==0 && table[m]==0 )
return 2;
@ -2385,6 +2387,7 @@ public:
return *this;
}
/*!
the assignment operator
*/