mirror of
https://github.com/eza-community/eza
synced 2024-07-01 07:24:50 +00:00
Revert "fix: use major-minor c_uint equivalent"
This reverts commit b1e642cdb1
.
This commit is contained in:
parent
21d93d4b1b
commit
d6bc6a369c
|
@ -194,8 +194,8 @@ pub enum Size {
|
|||
/// - <http://www.lanana.org/docs/device-list/devices-2.6+.txt>
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct DeviceIDs {
|
||||
pub major: u32,
|
||||
pub minor: u32,
|
||||
pub major: i64,
|
||||
pub minor: i64,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -363,8 +363,8 @@ impl<'dir> File<'dir> {
|
|||
// SAFETY: `major()` and `minor()` can return an unsigned integer
|
||||
// of at most 32bits, so an `i64` is going to accomodate them well
|
||||
f::Size::DeviceIDs(f::DeviceIDs {
|
||||
major: unsafe { major(device_ids) },
|
||||
minor: unsafe { minor(device_ids) },
|
||||
major: unsafe { major(device_ids) as i64 },
|
||||
minor: unsafe { minor(device_ids) as i64 },
|
||||
})
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user