widen unsafe block for pthread barrier test

This commit is contained in:
auronandace
2026-01-28 22:10:48 +00:00
parent 807e66cab6
commit 17cc166fff
+3 -1
View File
@@ -80,7 +80,9 @@ pub unsafe extern "C" fn pthread_barrierattr_setpshared(
attr: *mut pthread_barrierattr_t,
pshared: c_int,
) -> c_int {
(unsafe { *attr.cast::<RlctBarrierAttr>() }).pshared = pshared;
unsafe {
(*attr.cast::<RlctBarrierAttr>()).pshared = pshared;
}
0
}