Skip to content

Commit

Permalink
fix leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
rlogiacco committed Jan 26, 2024
1 parent 8f9f476 commit c3e5f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CircularBuffer.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ void inline CircularBuffer<T,S,IT>::copyToArray(R* out, R (&convertFn)(const T&)
const T* bufEnd = buffer + capacity;
const R* outEnd = out + count;
for (const T* current = head; current < bufEnd && out < outEnd; current++, out++) {
*out = convert(*current);
*out = convertFn(*current);
}
for (const T* current = buffer; current <= tail && out < outEnd; current++, out++) {
*out = convert(*current);
*out = convertFn(*current);
}
}

Expand Down

0 comments on commit c3e5f6e

Please sign in to comment.