Skip to content

Commit

Permalink
Fix bug with double-ended take
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkasad committed May 15, 2024
1 parent 1c057d5 commit 922052e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/take.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ iterator_t *citer_take(iterator_t *original, size_t count) {
return citer_new(
data,
citer_take_next,
citer_is_double_ended(original) ? citer_take_next_back : NULL,
CITER_HEDE(original) ? citer_take_next_back : NULL,
citer_take_free_data,
size_bound
);
Expand Down

0 comments on commit 922052e

Please sign in to comment.