From c9abd9b4f3b1276d41a5cdf80f363d29d5864d68 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 13 Jan 2020 21:33:11 +0000 Subject: C11 threads: Fix thrd_t / pthread_t compatibility assertion Reviewed-by: Adhemerval Zanella --- 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 8474e23..8423ffc 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 (thrd_t) == sizeof (pthread_t), + "sizeof (thrd_t) != sizeof (pthread_t)"); int err_code = __pthread_create_2_1 (thr, ATTR_C11_THREAD, (void* (*) (void*))func, arg); -- cgit v1.1