Skip to content

Commit 0764833

Browse files
qinghontgross35
authored andcommitted
openbsd: fix width bug for _IOC
1 parent 54aa6e7 commit 0764833

File tree

1 file changed

+1
-1
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+1
-1
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ pub const fn IOCGROUP(x: u32) -> u32 {
17351735
}
17361736

17371737
pub const fn _IOC(inout: c_ulong, group: c_ulong, num: c_ulong, len: c_ulong) -> c_ulong {
1738-
(inout) | (((len) & crate::IOCPARM_MASK) << 16) | ((group) << 8) | (num)
1738+
(inout) | (((len) & crate::IOCPARM_MASK as c_ulong) << 16) | ((group) << 8) | (num)
17391739
}
17401740

17411741
// sys/mount.h

0 commit comments

Comments
 (0)