Changeset 2329 for trunk


Ignore:
Timestamp:
Aug 5, 2018 2:21:09 PM (15 months ago)
Author:
forrest
Message:

new not malloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSimplexOther.cpp

    r2328 r2329  
    26442644            CoinStrdup(columnName(iColumn).c_str());
    26452645        }
    2646         lowerColumnMove = reinterpret_cast<double *> (malloc(numberColumns_ * sizeof(double)));
     2646        lowerColumnMove = new double [numberColumns_];
    26472647        memset(lowerColumnMove,0,numberColumns_*sizeof(double));
    2648         upperColumnMove = reinterpret_cast<double *> (malloc(numberColumns_ * sizeof(double)));
     2648        upperColumnMove = new double [numberColumns_];
    26492649        memset(upperColumnMove,0,numberColumns_*sizeof(double));
    2650         objectiveMove = reinterpret_cast<double *> (malloc(numberColumns_ * sizeof(double)));
     2650        objectiveMove = new double [numberColumns_];
    26512651        memset(objectiveMove,0,numberColumns_*sizeof(double));
    26522652        int nLine = 0;
Note: See TracChangeset for help on using the changeset viewer.