Skip to content

Commit

Permalink
Fix wrong assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Dec 13, 2024
1 parent 90c33ef commit c81bcc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audioBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ float AudioBuffer::getPeak(int channel, int a, int b) const
{
assert(channel < m_channels);
assert(a >= 0);
assert(b != -1 || a < b);
assert(b != -1 || b <= countFrames());
assert(b == -1 || a < b);
assert(b == -1 || b <= countFrames());

if (b == -1)
b = countFrames();
Expand Down

0 comments on commit c81bcc4

Please sign in to comment.