Ignore:
Timestamp:
Apr 29, 2011 2:06:50 PM (10 years ago)
Author:
stefan
Message:

apply fixes for compiler warnings send by Alpar Juettner:

  • Every appearance of DBL_MAX was replaced by COIN_DBL_MAX.
  • The unused parameter warnings were resolved by removing their names from the declaration.
  • Finally, I weeded out all the old-style casts from the code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristicDiveLineSearch.cpp

    r1573 r1643  
    7979    bestColumn = -1;
    8080    bestRound = -1; // -1 rounds down, +1 rounds up
    81     double bestRelDistance = DBL_MAX;
     81    double bestRelDistance = COIN_DBL_MAX;
    8282    bool allTriviallyRoundableSoFar = true;
    8383    for (int i = 0; i < numberIntegers; i++) {
     
    9292                if (allTriviallyRoundableSoFar && downLocks_[i] > 0 && upLocks_[i] > 0) {
    9393                    allTriviallyRoundableSoFar = false;
    94                     bestRelDistance = DBL_MAX;
     94                    bestRelDistance = COIN_DBL_MAX;
    9595                }
    9696
     
    104104                } else {
    105105                    round = -1;
    106                     relDistance = DBL_MAX;
     106                    relDistance = COIN_DBL_MAX;
    107107                }
    108108
Note: See TracChangeset for help on using the changeset viewer.