Changes between Initial Version and Version 1 of Ticket #13731, comment 31


Ignore:
Timestamp:
11/22/12 19:54:17 (7 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13731, comment 31

    initial v1  
    1111  int *G=(int *)omAlloc0(ExpSize);
    1212
    13   memcpy(F, F0,ExpSize);
     13  memcpy(F, F0,(rN+1)*sizeof(int));
    1414  // pExpVectorCopy(F,F0);
    15   memcpy(G, G0,ExpSize);
     15  memcpy(G, G0,(rN+1)*sizeof(int));
    1616}}}
     17'''EDIT:''' Oops, don't change the memcpy, since the source may not have such a large allocation. The target is 0-initialized, so the extra space should not be a problem.
     18
    1719God knows why they add an array of int as an array of long in
    1820{{{