fix: VaList::next_arg returns value directly

This commit is contained in:
Red Bear OS
2026-07-06 00:03:46 +03:00
parent 85a7ea0396
commit 844bdd5d81
+2 -2
View File
@@ -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)