Skip to content

Commit

Permalink
correct
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Jun 24, 2024
1 parent 139687c commit 4178169
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions encodings/fastlanes/src/for/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ impl EncodingCompression for FoREncoding {
match_each_integer_ptype!(parray.ptype(), |$P| {
let min: $P = parray.statistics().compute_min()?;
let max: $P = parray.statistics().compute_max()?;
let _subbed = max.wrapping_sub(min);
if max.wrapping_sub(min) < max {
if max.wrapping_sub(min) < 0 {
return None;
}
});
Expand Down

0 comments on commit 4178169

Please sign in to comment.