[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Apr 5 19:33:15 CEST 2005
CVS commit by staikos:
i < new_nf -> new_nf - i > 0 but skip > 0 so
new_nf - i >= Skip
-> new_nf - i >= 1 -> new_nf - i > 0 so this is redundant
M +2 -3 kstrvector.cpp 1.87
--- kdeextragear-2/kst/kst/kstrvector.cpp #1.86:1.87
@@ -542,8 +542,7 @@ KstObject::UpdateType KstRVector::doUpda
// precalculate new_nf to be small enough so that we don't have to
// constantly check (new_nf - i) >= Skip
- // Also eliminate j?
double *t = _v + _numSamples;
if (DoAve) {
- for (i = NF; i < new_nf && (new_nf - i) >= Skip; i += Skip) {
+ for (i = NF; (new_nf - i) >= Skip; i += Skip) {
/* enlarge AveReadBuf if necessary */
if (N_AveReadBuf < Skip*SPF) {
@@ -565,5 +564,5 @@ KstObject::UpdateType KstRVector::doUpda
}
} else {
- for (i = NF; i < new_nf && (new_nf - i) >= Skip; i += Skip) {
+ for (i = NF; (new_nf - i) >= Skip; i += Skip) {
//kdDebug() << "readField " << _field << " start=" << new_f0 + i << " n=-1" << endl;
n_read += _file->readField(t++, _field, new_f0 + i, -1);
More information about the Kst
mailing list