[Kst] branches/work/kst/portto4/kst/src/libkst

Barth Netterfield netterfield at astro.utoronto.ca
Tue Apr 24 21:03:09 UTC 2012


SVN commit 1291548 by netterfield:



 M  +3 -1      datavector.cpp  


--- branches/work/kst/portto4/kst/src/libkst/datavector.cpp #1291547:1291548
@@ -559,9 +559,11 @@
       int safe_nf = (new_nf>0 ? new_nf : 0);
 
       assert(new_f0 + NF >= 0);
-      assert(new_f0 + safe_nf - 1 >= 0);
+      if (new_f0 + safe_nf - 1 >= 0) {
+      //assert(new_f0 + safe_nf - 1 >= 0);
       n_read = readField(_v+NF*SPF, _field, new_f0 + NF, safe_nf - NF - 1);
       n_read += readField(_v+(safe_nf-1)*SPF, _field, new_f0 + safe_nf - 1, -1);
+      }
     } else {
       assert(new_f0 + NF >= 0);
       if (new_nf - NF > 0 || new_nf - NF == -1) {


More information about the Kst mailing list