[Hugin-cvs] hugin/src/include/common lu.h,1.1,1.2

 [Hugin-cvs] hugin/src/include/common lu.h,1.1,1.2 From: Pablo d'Angelo - 2006-06-01 19:04:40 ```Update of /cvsroot/hugin/hugin/src/include/common In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6298/src/include/common Modified Files: lu.h Log Message: silence MSVC warnings Index: lu.h =================================================================== RCS file: /cvsroot/hugin/hugin/src/include/common/lu.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- lu.h 19 Apr 2006 23:13:38 -0000 1.1 +++ lu.h 1 Jun 2006 19:04:35 -0000 1.2 @@ -96,7 +96,7 @@ { m_nEq = nEq; m_AtA = new double[nEq*(nEq+1)]; - for (int i=0; i < nEq*(nEq+1); i++) m_AtA[i] = 0; + for (unsigned i=0; i < nEq*(nEq+1); i++) m_AtA[i] = 0; } ~LMS_Solver() @@ -124,8 +124,8 @@ bool solve(Vector & x) { double * solution = new double[m_nEq]; - bool ret = math_lu_solve(m_AtA, solution, m_nEq); - for (int i=0; i < m_nEq; i++) { + bool ret = math_lu_solve(m_AtA, solution, m_nEq) != 0; + for (unsigned i=0; i < m_nEq; i++) { x[i] = solution[i]; } delete[] solution; ```

 [Hugin-cvs] hugin/src/include/common lu.h,1.1,1.2 From: Pablo d'Angelo - 2006-06-01 19:04:40 ```Update of /cvsroot/hugin/hugin/src/include/common In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6298/src/include/common Modified Files: lu.h Log Message: silence MSVC warnings Index: lu.h =================================================================== RCS file: /cvsroot/hugin/hugin/src/include/common/lu.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- lu.h 19 Apr 2006 23:13:38 -0000 1.1 +++ lu.h 1 Jun 2006 19:04:35 -0000 1.2 @@ -96,7 +96,7 @@ { m_nEq = nEq; m_AtA = new double[nEq*(nEq+1)]; - for (int i=0; i < nEq*(nEq+1); i++) m_AtA[i] = 0; + for (unsigned i=0; i < nEq*(nEq+1); i++) m_AtA[i] = 0; } ~LMS_Solver() @@ -124,8 +124,8 @@ bool solve(Vector & x) { double * solution = new double[m_nEq]; - bool ret = math_lu_solve(m_AtA, solution, m_nEq); - for (int i=0; i < m_nEq; i++) { + bool ret = math_lu_solve(m_AtA, solution, m_nEq) != 0; + for (unsigned i=0; i < m_nEq; i++) { x[i] = solution[i]; } delete[] solution; ```