Skip to content

Commit

Permalink
Merge pull request #277 from wti/fix-274_ReorderSortTake0
Browse files Browse the repository at this point in the history
Fixes 274 - take unbounded if 0 in ReorderSort
  • Loading branch information
zh217 authored Aug 12, 2024
2 parents 6ab063c + 9b34de8 commit 57b7b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cozo-core/src/fixed_rule/utilities/reorder_sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl FixedRule for ReorderSort {
last = sorter;
}

if count > take_plus_skip {
if take != 0 && count > take_plus_skip {
break;
}

Expand Down

0 comments on commit 57b7b44

Please sign in to comment.