Skip to content

Commit

Permalink
Don't use an iterator where a pointer is expected
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Oct 14, 2023
1 parent d157cf4 commit 59b3197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/uhjfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void UhjEncoder<N>::encode(float *LeftOut, float *RightOut,

/* Apply the first segment of the filter in the time domain. */
auto buf_iter = mD.begin() + base;
Filter.mPShift.process({buf_iter, todo}, mWXIn.begin()+1 + mFifoPos);
Filter.mPShift.process({buf_iter, todo}, mWXIn.data()+1 + mFifoPos);

/* Add the other segments of the filter that were previously processed
* by the FFT.
Expand Down

0 comments on commit 59b3197

Please sign in to comment.