Skip to content

Commit

Permalink
Fixing ResampleLinearSpectrum method in spectrum.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapsler authored and mmp committed Oct 12, 2019
1 parent e19f232 commit c88a7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/spectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ void ResampleLinearSpectrum(const Float *lambdaIn, const Float *vIn, int nIn,
// Linear search from the starting point. (Presumably more
// efficient than a binary search from scratch, or doesn't
// matter either way.)
end = start;
end = start > 0 ? start : 0;
while (end < nIn && lambda + delta > lambdaIn[end]) ++end;
}

Expand Down

0 comments on commit c88a7ce

Please sign in to comment.