COIN-OR::LEMON - Graph Library

Changeset 976:5205145fabf6 in lemon


Ignore:
Timestamp:
05/02/10 18:53:56 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
977:4f8b22521b4a, 978:cbf32bf95954, 979:0bca98cbebbb, 982:bb70ad62c95f
Phase:
public
Message:

Fix the usage of min() (#368)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/network_simplex.h

    r710 r976  
    10431043        ART_COST = std::numeric_limits<Cost>::max() / 2 + 1;
    10441044      } else {
    1045         ART_COST = std::numeric_limits<Cost>::min();
     1045        ART_COST = 0;
    10461046        for (int i = 0; i != _arc_num; ++i) {
    10471047          if (_cost[i] > ART_COST) ART_COST = _cost[i];
     
    14581458      if (_sum_supply == 0) {
    14591459        if (_stype == GEQ) {
    1460           Cost max_pot = std::numeric_limits<Cost>::min();
     1460          Cost max_pot = -std::numeric_limits<Cost>::max();
    14611461          for (int i = 0; i != _node_num; ++i) {
    14621462            if (_pi[i] > max_pot) max_pot = _pi[i];
Note: See TracChangeset for help on using the changeset viewer.