From 01a86e40d9aa2b0f80de860bebea48a94bfded7f Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 20 Sep 2009 12:47:44 +0000 Subject: [PATCH] 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 --- ttmath/ttmathuint.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ttmath/ttmathuint.h b/ttmath/ttmathuint.h index 3ccb829..e6a3b9e 100644 --- a/ttmath/ttmathuint.h +++ b/ttmath/ttmathuint.h @@ -1558,12 +1558,14 @@ private: */ uint Div_CalculatingSize(const UInt & 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 */