https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008/milena
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Fix missing parentheses in sandbox Rd by union-find.
* sandbox/geraud/Rd/union_find.hh: Fix.
union_find.hh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: sandbox/geraud/Rd/union_find.hh
--- sandbox/geraud/Rd/union_find.hh (revision 2465)
+++ sandbox/geraud/Rd/union_find.hh (working copy)
@@ -77,7 +77,6 @@
for (unsigned i = 0; i < S.size(); ++i)
{
point p = S[i];
-
make_set(p);
mln_niter(N) n(nbh, p);
for_all(n)
@@ -96,8 +95,10 @@
{
point p = S[i];
if (parent(p) == p)
+ {
if (o(p) == mln_max(value))
o(p) = g(p);
+ }
else
o(p) = o(parent(p));
}