Ignore:
Timestamp:
May 2, 2011 5:29:05 AM (8 years ago)
Author:
stefan
Message:

fix compiler warnings

File:
1 edited

Legend:

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

    r1641 r1644  
    55
    66// Edwin 11/24/09 carved from CbcNode
    7 
    8 #if defined(_MSC_VER)
    9 // Turn off compiler warning about long names
    10 #  pragma warning(disable:4786)
    11 #endif
    127
    138#include "CbcConfig.h"
     
    2116#include <cfloat>
    2217#define CUTS
     18#include "CoinPragma.hpp"
    2319#include "OsiSolverInterface.hpp"
    2420#include "OsiChooseVariable.hpp"
     
    7167
    7268    numberChangedBounds_ = numberChangedBounds;
    73     int size = numberChangedBounds_ * (sizeof(double) + sizeof(int));
     69    size_t size = numberChangedBounds_ * (sizeof(double) + sizeof(int));
    7470    char * temp = new char [size];
    7571    newBounds_ = reinterpret_cast<double *> (temp);
     
    9490#endif
    9591    numberChangedBounds_ = rhs.numberChangedBounds_;
    96     int size = numberChangedBounds_ * (sizeof(double) + sizeof(int));
     92    size_t size = numberChangedBounds_ * (sizeof(double) + sizeof(int));
    9793    char * temp = new char [size];
    9894    newBounds_ = reinterpret_cast<double *> (temp);
     
    245241    }
    246242    if (nAdd) {
    247         int size = (numberChangedBounds_ + nAdd) * (sizeof(double) + sizeof(int));
     243        size_t size = (numberChangedBounds_ + nAdd) * (sizeof(double) + sizeof(int));
    248244        char * temp = new char [size];
    249245        double * newBounds = reinterpret_cast<double *> (temp);
Note: See TracChangeset for help on using the changeset viewer.