We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
blocksort.rs
mainGtU
1 parent 35037b0 commit 6182d2cCopy full SHA for 6182d2c
libbz2-rs-sys/src/blocksort.rs
@@ -414,12 +414,14 @@ fn mainGtU(
414
let q1 = &quadrant[i1 as usize..][..8];
415
let q2 = &quadrant[i2 as usize..][..8];
416
417
- for (((c1, c2), s1), s2) in b1.iter().zip(b2).zip(q1).zip(q2) {
418
- if c1 != c2 {
419
- return c1 > c2;
420
- }
421
- if s1 != s2 {
422
- return s1 > s2;
+ if b1 != b2 || q1 != q2 {
+ for (((c1, c2), s1), s2) in b1.iter().zip(b2).zip(q1).zip(q2) {
+ if c1 != c2 {
+ return c1 > c2;
+ }
+ if s1 != s2 {
423
+ return s1 > s2;
424
425
}
426
427
@@ -432,6 +434,7 @@ fn mainGtU(
432
434
if i2 >= nblock {
433
435
i2 = i2.wrapping_sub(nblock);
436
437
+
438
*budget -= 1;
439
440
0 commit comments