Skip to content

Commit 42c0376

Browse files
committed
Fix makedev function signature on Apple targets
1 parent b52e881 commit 42c0376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/unix/bsd/apple/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5587,8 +5587,8 @@ safe_f! {
55875587
_WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) != 0x13
55885588
}
55895589

5590-
pub {const} fn makedev(major: i32, minor: i32) -> dev_t {
5591-
(major << 24) | minor
5590+
pub {const} fn makedev(major: u32, minor: u32) -> dev_t {
5591+
((major << 24) | minor) as dev_t
55925592
}
55935593

55945594
pub {const} fn major(dev: dev_t) -> i32 {

0 commit comments

Comments
 (0)