freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix errorneous Field/tests/NearestNeighbours.cpp test


From: Richard Guenther
Subject: [PATCH] Fix errorneous Field/tests/NearestNeighbours.cpp test
Date: Thu, 16 Jan 2003 15:24:03 +0100 (CET)

I'll apply the following patch as obvious tonight.

Richard.

--- 1.2/r2/src/Field/tests/NearestNeighbors.cpp Thu Dec 19 10:37:26 2002
+++ edited/NearestNeighbors.cpp Thu Jan 16 15:22:12 2003
@@ -94,7 +94,7 @@
 inline double
 manhattanDistance(const Vector<Dim> &difference)
 {
-  double answer;
+  double answer = 0.0;
   for (int coordinate = Dim-1; coordinate >= 0; --coordinate)
     answer += std::abs(difference(coordinate));
   return answer;

--
Richard Guenther <address@hidden>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]