mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-09-22 17:28:19 +02:00
bug: fix build on FreeBSD on ARM / POWER (#1817)
Both ARM and POWER use unsigned char. This PR fixes `process_ext.rs` to use `libc::c_char` rather than the previous `i8`.
This commit is contained in:
parent
e4b814fd0b
commit
59b1db530d
@ -172,7 +172,7 @@ fn convert_process_status_to_char(status: ProcessStatus) -> char {
|
||||
_ => '?'
|
||||
}
|
||||
} else if #[cfg(target_os = "freebsd")] {
|
||||
const fn assert_u8(val: i8) -> u8 {
|
||||
const fn assert_u8(val: libc::c_char) -> u8 {
|
||||
if val < 0 { panic!("there was an invalid i8 constant that is supposed to be a char") } else { val as u8 }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user