Ignore:
Timestamp:
Apr 29, 2011 2:06:50 PM (8 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/CbcHeuristicDiveVectorLength.cpp

    r1573 r1643  
    8080    bestColumn = -1;
    8181    bestRound = -1; // -1 rounds down, +1 rounds up
    82     double bestScore = DBL_MAX;
     82    double bestScore = COIN_DBL_MAX;
    8383    bool allTriviallyRoundableSoFar = true;
    8484    for (int i = 0; i < numberIntegers; i++) {
     
    9292                if (allTriviallyRoundableSoFar && downLocks_[i] > 0 && upLocks_[i] > 0) {
    9393                    allTriviallyRoundableSoFar = false;
    94                     bestScore = DBL_MAX;
     94                    bestScore = COIN_DBL_MAX;
    9595                }
    9696
Note: See TracChangeset for help on using the changeset viewer.