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

    r1573 r1643  
    7676    bestColumn = -1;
    7777    bestRound = -1; // -1 rounds down, +1 rounds up
    78     double bestFraction = DBL_MAX;
     78    double bestFraction = COIN_DBL_MAX;
    7979    bool allTriviallyRoundableSoFar = true;
    8080    for (int i = 0; i < numberIntegers; i++) {
     
    8888                if (allTriviallyRoundableSoFar && downLocks_[i] > 0 && upLocks_[i] > 0) {
    8989                    allTriviallyRoundableSoFar = false;
    90                     bestFraction = DBL_MAX;
     90                    bestFraction = COIN_DBL_MAX;
    9191                }
    9292
Note: See TracChangeset for help on using the changeset viewer.