Changeset 96


Ignore:
Timestamp:
Mar 31, 2005 2:42:42 PM (16 years ago)
Author:
forrest
Message:

mostly fix overflow in priority

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcModel.cpp

    r94 r96  
    34843484    int i1=numberObjects_-1;
    34853485    if (ifObject) {
     3486      /* priority_ may be wrong size.  This fix may not cope with
     3487         all possibilities but should for normal use. */
     3488      int * temp = new int[numberObjects_];
     3489      memcpy(temp,priority_,numberIntegers_*sizeof(int));
     3490      delete [] priority_;
     3491      priority_=temp;
    34863492      memcpy(priority_+numberIntegers_,priorities,
    34873493             (numberObjects_-numberIntegers_)*sizeof(int));
Note: See TracChangeset for help on using the changeset viewer.