This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 07/10] C11 threads: Fix thrd_t / pthread_t compatibility assertion
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Tue, 14 Jan 2020 19:52:52 +0100
- Subject: [PATCH 07/10] C11 threads: Fix thrd_t / pthread_t compatibility assertion
- References: <20200114185255.25813-1-samuel.thibault@ens-lyon.org>
---
nptl/thrd_create.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nptl/thrd_create.c b/nptl/thrd_create.c
index 8474e234c9..fe08e22973 100644
--- a/nptl/thrd_create.c
+++ b/nptl/thrd_create.c
@@ -21,8 +21,8 @@
int
thrd_create (thrd_t *thr, thrd_start_t func, void *arg)
{
- _Static_assert (sizeof (thr) == sizeof (pthread_t),
- "sizeof (thr) != sizeof (pthread_t)");
+ _Static_assert (sizeof (*thr) == sizeof (pthread_t),
+ "sizeof (*thr) != sizeof (pthread_t)");
int err_code = __pthread_create_2_1 (thr, ATTR_C11_THREAD,
(void* (*) (void*))func, arg);
--
2.24.1