Skip to content

Commit 884edb2

Browse files
author
Gunter Schmidt
committed
fix: removed 32-bit conditional compiling
1 parent d0c0611 commit 884edb2

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

src/cmp.rs

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,12 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
9898
"M" => 1_048_576,
9999
"GB" => 1_000_000_000,
100100
"G" => 1_073_741_824,
101-
// This only generates a warning when compiling for target_pointer_width < 64
102-
#[allow(unused_variables)]
103-
suffix @ ("TB" | "T" | "PB" | "P" | "EB" | "E") => {
104-
#[cfg(target_pointer_width = "64")]
105-
match suffix {
106-
"TB" => 1_000_000_000_000,
107-
"T" => 1_099_511_627_776,
108-
"PB" => 1_000_000_000_000_000,
109-
"P" => 1_125_899_906_842_624,
110-
"EB" => 1_000_000_000_000_000_000,
111-
"E" => 1_152_921_504_606_846_976,
112-
_ => unreachable!(),
113-
}
114-
#[cfg(not(target_pointer_width = "64"))]
115-
usize::MAX
116-
}
101+
"TB" => 1_000_000_000_000,
102+
"T" => 1_099_511_627_776,
103+
"PB" => 1_000_000_000_000_000,
104+
"P" => 1_125_899_906_842_624,
105+
"EB" => 1_000_000_000_000_000_000,
106+
"E" => 1_152_921_504_606_846_976,
117107
// TODO setting usize:MAX does not mimic GNU cmp behavior, it should be an error.
118108
"ZB" => IgnInit::MAX, // 1_000_000_000_000_000_000_000,
119109
"Z" => IgnInit::MAX, // 1_180_591_620_717_411_303_424,

0 commit comments

Comments
 (0)