Skip to content

Commit d0ac62d

Browse files
committed
openbsd: fix width bug for _IOC
1 parent 5f45722 commit d0ac62d

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
@@ -1818,7 +1818,7 @@ pub const fn IOCGROUP(x: u32) -> u32 {
18181818
}
18191819

18201820
pub const fn _IOC(inout: c_ulong, group: c_ulong, num: c_ulong, len: c_ulong) -> c_ulong {
1821-
(inout) | (((len) & crate::IOCPARM_MASK) << 16) | ((group) << 8) | (num)
1821+
(inout) | (((len) & crate::IOCPARM_MASK as c_ulong) << 16) | ((group) << 8) | (num)
18221822
}
18231823

18241824
// sys/mount.h

0 commit comments

Comments
 (0)