Skip to content

Commit

Permalink
saturating sub
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jun 11, 2024
1 parent 1e2b56e commit b00f613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-core/src/chunked_array/ops/sort/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl ChunkSort<BinaryType> for BinaryChunked {

for i in 0..null_count {
unsafe { *views.get_unchecked_mut(end) = *views.get_unchecked(i) };
end -= 1;
end = end.saturating_sub(1);
}
&mut views[null_count..]
}
Expand Down

0 comments on commit b00f613

Please sign in to comment.