Closed
Description
rust/library/std/src/sys/wasi/thread.rs
Lines 19 to 26 in 5697f16
the type which should have its size compared is c_long
, not c_int
:
wasi-libc's code linked in comment above:
TYPEDEF struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t;
since you made the commit, cc @g0djan