# HG changeset patch # User klao # Date 1096367543 0 # Node ID 174490f545f803d99ff251984b393d2f3dbf7a45 # Parent f2acaefc721c40f84638c3bcde074037e8e5ece3 Bugfix. (unionfind segfaulted when compiled with icc) diff -r f2acaefc721c -r 174490f545f8 src/hugo/unionfind.h --- a/src/hugo/unionfind.h Tue Sep 28 08:35:27 2004 +0000 +++ b/src/hugo/unionfind.h Tue Sep 28 10:32:23 2004 +0000 @@ -446,7 +446,8 @@ if (lai == clit) return false; - ItemList &c = *clit->my_class; + ItemList &cl = *clit->my_class, + &al = *lai->my_class; bool is_leader = (lai == ai); bool singleton = false; @@ -455,7 +456,7 @@ ++lai; } - c.splice(c.end(), *lai->my_class, ai); + cl.splice(cl.end(), al, ai); if (is_leader) { if (ai->size == 1) { @@ -468,7 +469,7 @@ } } if (!singleton) { - for (IIter i = lai; i != lai->my_class->end(); ++i) + for (IIter i = lai; i != al.end(); ++i) i->parent = lai; --lai->size; }