COIN-OR::LEMON - Graph Library

Changeset 914:174490f545f8 in lemon-0.x


Ignore:
Timestamp:
09/28/04 12:32:23 (20 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1225
Message:

Bugfix. (unionfind segfaulted when compiled with icc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/unionfind.h

    r906 r914  
    447447        return false;
    448448
    449       ItemList &c = *clit->my_class;
     449      ItemList &cl = *clit->my_class,
     450        &al = *lai->my_class;
    450451
    451452      bool is_leader = (lai == ai);
     
    456457      }
    457458
    458       c.splice(c.end(), *lai->my_class, ai);
     459      cl.splice(cl.end(), al, ai);
    459460
    460461      if (is_leader) {
     
    469470      }
    470471      if (!singleton) {
    471         for (IIter i = lai; i != lai->my_class->end(); ++i)
     472        for (IIter i = lai; i != al.end(); ++i)
    472473          i->parent = lai;
    473474        --lai->size;
Note: See TracChangeset for help on using the changeset viewer.