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/CbcHeuristicDiveCoefficient.cpp

    r1573 r1643  
    7878    bestColumn = -1;
    7979    bestRound = -1; // -1 rounds down, +1 rounds up
    80     double bestFraction = DBL_MAX;
     80    double bestFraction = COIN_DBL_MAX;
    8181    int bestLocks = COIN_INT_MAX;
    8282    bool allTriviallyRoundableSoFar = true;
     
    9393                if (allTriviallyRoundableSoFar && nDownLocks > 0 && nUpLocks > 0) {
    9494                    allTriviallyRoundableSoFar = false;
    95                     bestFraction = DBL_MAX;
     95                    bestFraction = COIN_DBL_MAX;
    9696                    bestLocks = COIN_INT_MAX;
    9797                }
Note: See TracChangeset for help on using the changeset viewer.