about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeorgii Rylov <g0dj4n@gmail.com>2023-08-08 11:07:48 +0100
committerGeorgii Rylov <g0dj4n@gmail.com>2023-08-08 11:07:48 +0100
commit971427e5f1cc7b70e448b61232fa8f97041d48ac (patch)
tree123b8fafe695476e92bd995785a36f19534cd2f7
parent139b49b99523c43219b39079aa8fb2e084c52a1c (diff)
downloadrust-971427e5f1cc7b70e448b61232fa8f97041d48ac.tar.gz
rust-971427e5f1cc7b70e448b61232fa8f97041d48ac.zip
Fix #114608
-rw-r--r--library/std/src/sys/wasi/thread.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/wasi/thread.rs b/library/std/src/sys/wasi/thread.rs
index d27b7a2e0f5..dbad425976a 100644
--- a/library/std/src/sys/wasi/thread.rs
+++ b/library/std/src/sys/wasi/thread.rs
@@ -20,9 +20,9 @@ cfg_if::cfg_if! {
             // https://github.com/WebAssembly/wasi-libc/blob/a6f871343313220b76009827ed0153586361c0d5/libc-top-half/musl/include/alltypes.h.in#L108
             #[repr(C)]
             union pthread_attr_union {
-                __i: [ffi::c_int; if mem::size_of::<ffi::c_int>() == 8 { 14 } else { 9 }],
-                __vi: [ffi::c_int; if mem::size_of::<ffi::c_int>() == 8 { 14 } else { 9 }],
-                __s: [ffi::c_ulong; if mem::size_of::<ffi::c_int>() == 8 { 7 } else { 9 }],
+                __i: [ffi::c_int; if mem::size_of::<ffi::c_long>() == 8 { 14 } else { 9 }],
+                __vi: [ffi::c_int; if mem::size_of::<ffi::c_long>() == 8 { 14 } else { 9 }],
+                __s: [ffi::c_ulong; if mem::size_of::<ffi::c_long>() == 8 { 7 } else { 9 }],
             }
 
             #[repr(C)]