Changeset 403


Ignore:
Timestamp:
Jul 28, 2004 2:45:41 PM (16 years ago)
Author:
forrest
Message:

to stop Idiot seg fault

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Idiot.cpp

    r399 r403  
    647647    // Don't know why getting Microsoft problems
    648648#if defined (_MSC_VER)
    649     delete [] ( double *)rowScale;
    650     delete [] ( double *) columnScale;
    651649    delete [] ( double *) elemXX;
    652650#else
    653     delete [] rowScale;
    654     delete [] columnScale;
    655651    delete [] elemXX;
    656652#endif
  • trunk/include/ClpModel.hpp

    r393 r403  
    304304   inline const double * rowScale() const {return rowScale_;};
    305305   inline const double * columnScale() const {return columnScale_;};
    306    inline void setRowScale(double * scale) { delete [] rowScale_; rowScale_ = scale;};
    307    inline void setColumnScale(double * scale) { delete [] columnScale_; columnScale_ = scale;};
     306   inline void setRowScale(double * scale) { delete [] (double *) rowScale_; rowScale_ = scale;};
     307   inline void setColumnScale(double * scale) { delete [] (double *) columnScale_; columnScale_ = scale;};
    308308  /// Scaling of objective
    309309  inline double objectiveScale() const
Note: See TracChangeset for help on using the changeset viewer.