[Kst] branches/work/kst/1.1/kst/kst
George Staikos
staikos at kde.org
Fri Sep 30 18:33:06 CEST 2005
SVN commit 465729 by staikos:
Finally found a legitimate testcase for new_nf - NF = 0 here. No longer assert.
M +3 -2 kstrvector.cpp
--- branches/work/kst/1.1/kst/kst/kstrvector.cpp #465728:465729
@@ -584,8 +584,9 @@
} else {
//kdDebug() << "Reading into _v=" << (void*)_v << " which has size " << _size << " and starting at offset " << NF*SPF << " for s=" << new_f0 + NF << " and n=" << new_nf - NF << endl;
assert(new_f0 + NF >= 0);
- assert(new_nf - NF > 0 || new_nf - NF == -1);
- n_read = _file->readField(_v+NF*SPF, _field, new_f0 + NF, new_nf - NF);
+ if (new_nf - NF > 0 || new_nf - NF == -1) {
+ n_read = _file->readField(_v+NF*SPF, _field, new_f0 + NF, new_nf - NF);
+ }
}
}
More information about the Kst
mailing list