Skip to content

Commit

Permalink
blocksort.rs: fix a refactoring bug
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Nov 12, 2024
1 parent a22ad6e commit 9d90831
Show file tree
Hide file tree
Showing 3 changed files with 1,422 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocksort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ fn mainSort(
for j in 0..=255 {
if j != ss {
sb = (ss << 8 as c_int) + j;
if (!(ftab[sb as usize] & SETMASK)) != 0 {
if ftab[sb as usize] & SETMASK == 0 {
let lo: i32 = (ftab[sb as usize] & CLEARMASK) as i32;
let hi: i32 = ((ftab[sb as usize + 1] & CLEARMASK).wrapping_sub(1)) as i32;

Expand Down
Loading

0 comments on commit 9d90831

Please sign in to comment.