Skip to content

Commit

Permalink
Correction, return Bitness::X32 when it see "32\n"
Browse files Browse the repository at this point in the history
  • Loading branch information
martintc committed Apr 25, 2022
1 parent b317711 commit 63f4239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_info/src/bitness.rs
Expand Up @@ -83,7 +83,7 @@ pub fn get() -> Bitness {
pub fn get() -> Bitness {
match &Command::new("isainfo").arg("-b").output() {
Ok(Output { stdout, .. }) if stdout == b"64\n" => Bitness::X64,
Ok(Output { stdout, .. }) if stdout == b"32\n" => Bitness::X64,
Ok(Output { stdout, .. }) if stdout == b"32\n" => Bitness::X32,
_ => Bitness::Unknown,
}
}
Expand Down

0 comments on commit 63f4239

Please sign in to comment.