Skip to content

Commit

Permalink
Merge pull request #64 from petiaccja/bugfix
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
petiaccja authored Jul 10, 2022
2 parents 04ac5a4 + fec4544 commit 541ff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/dspbb/Filtering/Resample.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ ResampleSuspensionPoint Resample(SignalR&& output,
assert(polyphase.FilterCount() > 0);

[[maybe_unused]] const auto maxLength = ResampleLength(input.Size(), polyphase.OriginalSize(), polyphase.FilterCount(), sampleRates, CONV_FULL);
assert(startPoint + int64_t(output.Size()) < maxLength);
assert(startPoint + int64_t(output.Size()) <= maxLength);

auto outputIndex = startPoint;
for (auto outputIt = output.begin(); outputIt != output.end(); ++outputIt, outputIndex += 1) {
Expand Down

0 comments on commit 541ff6f

Please sign in to comment.