COIN-OR::LEMON - Graph Library

Ticket #174: bugfix_09acd23a35bd.patch

File bugfix_09acd23a35bd.patch, 594 bytes (added by Peter Kovacs, 11 years ago)
  • lemon/elevator.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1227262102 -3600
    # Node ID 09acd23a35bdd78e83868cc10d819d96081bf5d7
    # Parent  bd4154ce84860e2e3cdaf96ae2f5608ae365a195
    Bug fix in Elevator
    
    diff --git a/lemon/elevator.h b/lemon/elevator.h
    a b  
    307307    Item liftActiveOn(int level)
    308308    {
    309309      Item it =*_last_active[level];
    310       ++_level.set(it,_level[it]+1);
     310      _level.set(it,_level[it]+1);
    311311      swap(_last_active[level]--, --_first[level+1]);
    312312      if (level+1>_highest_active) ++_highest_active;
    313313    }