Skip to content

Commit

Permalink
Convert major and minor return types in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
igankevich committed Dec 18, 2024
1 parent ebb9522 commit 8e62ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libc-test/test/makedev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ mod t {
let dev = unsafe { makedev_ffi(major, minor) };
assert_eq!(libc::makedev(major, minor), dev);
let major = unsafe { major_ffi(dev) };
assert_eq!(libc::major(dev), major);
assert_eq!(libc::major(dev), major as _);
let minor = unsafe { minor_ffi(dev) };
assert_eq!(libc::minor(dev), minor);
assert_eq!(libc::minor(dev), minor as _);
}

// Every OS should be able to handle 8 bit major and minor numbers
Expand Down

0 comments on commit 8e62ae0

Please sign in to comment.