fix: VaList::next_arg returns value directly
This commit is contained in:
@@ -159,8 +159,8 @@ pub unsafe extern "C" fn sem_open(
|
||||
}
|
||||
let (mode, value): (mode_t, c_uint) = if create {
|
||||
(
|
||||
unsafe { __valist.next_arg::<mode_t>() }.unwrap_or(0),
|
||||
unsafe { __valist.next_arg::<c_uint>() }.unwrap_or(0),
|
||||
unsafe { __valist.next_arg::<mode_t>() },
|
||||
unsafe { __valist.next_arg::<c_uint>() },
|
||||
)
|
||||
} else {
|
||||
(0, 0)
|
||||
|
||||
Reference in New Issue
Block a user