mirror of
https://github.com/uutils/diffutils.git
synced 2026-06-10 15:48:59 -07:00
cmp: fix 32-bit usize overflow in test (#173)
Fixes https://github.com/uutils/diffutils/issues/172
This commit is contained in:
@@ -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()
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user