Changeset 10039:5f7643c9e461 in orange


Ignore:
Timestamp:
02/08/12 09:20:17 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Fix a segfault on GCC/Linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/decomposition.cpp

    r7665 r10039  
    132132 
    133133  int id = 0; 
    134   for(vector<int>::iterator ni(valf.begin()), ne(valf.end()); ni!=ne; *(ni++) = (id+=*ni)-*ni); 
     134  for(vector<int>::iterator ni=valf.begin(); ni!=valf.end(); ++ni) 
     135      *ni = (id+=*ni)-*ni; 
    135136 
    136137  vector<TEnIIterator> *newPtrs = mlnew vector<TEnIIterator>(sorting->size(), sorting->front()); 
     
    156157 
    157158  int id = 0; 
    158   for(vector<int>::iterator ni=valf.begin(); ni!=valf.end(); *(ni++) = (id+=*ni)-*ni); 
     159  for(vector<int>::iterator ni=valf.begin(); ni!=valf.end(); ++ni) 
     160      *ni = (id+=*ni)-*ni; 
    159161 
    160162  vector<TEnIIterator> *newPtrs = mlnew vector<TEnIIterator>(sorting->size(), sorting->front()); 
Note: See TracChangeset for help on using the changeset viewer.