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:
parent
f19078f9f1
commit
01a86e40d9
|
@ -1558,12 +1558,14 @@ private:
|
||||||
*/
|
*/
|
||||||
uint Div_CalculatingSize(const UInt<value_size> & v, uint & m, uint & n)
|
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 )
|
if( n==0 && v.table[n]==0 )
|
||||||
return 1;
|
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 )
|
if( m==0 && table[m]==0 )
|
||||||
return 2;
|
return 2;
|
||||||
|
@ -2385,6 +2387,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
the assignment operator
|
the assignment operator
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue