cmp: fix 32-bit usize overflow in test (#173)

Fixes https://github.com/uutils/diffutils/issues/172
This commit is contained in:
Aster Boese
2026-03-07 12:35:57 -05:00
committed by GitHub
parent 59e130aa22
commit 357c99038f
+3
View File
@@ -1085,6 +1085,9 @@ mod tests {
from: os("foo"),
to: os("bar"),
skip_a: Some(1_000_000_000),
#[cfg(target_pointer_width = "32")]
skip_b: Some((2_147_483_647.5 * 2.0) as usize),
#[cfg(target_pointer_width = "64")]
skip_b: Some(1_152_921_504_606_846_976 * 2),
..Default::default()
}),