From 9b989509fa80930cd2b4cfa9b8253bc1d34dc655 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 19 Jul 2022 09:38:05 +0200 Subject: [PATCH] add casts in case types don't match (musl). Let's hope it does not break elsewhere --- src/sthread/sthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sthread/sthread.c b/src/sthread/sthread.c index 5b31764ceb..a444e23f68 100644 --- a/src/sthread/sthread.c +++ b/src/sthread/sthread.c @@ -70,7 +70,7 @@ int pthread_create(pthread_t* thread, const pthread_attr_t* attr, void* (*start_ return raw_pthread_create(thread, attr, start_routine, arg); sthread_inside_simgrid = 1; - int res = sthread_create(thread, attr, start_routine, arg); + int res = sthread_create((sthread_t*)thread, attr, start_routine, arg); sthread_inside_simgrid = 0; return res; } @@ -83,7 +83,7 @@ int pthread_join(pthread_t thread, void** retval) return raw_pthread_join(thread, retval); sthread_inside_simgrid = 1; - int res = sthread_join(thread, retval); + int res = sthread_join((sthread_t)thread, retval); sthread_inside_simgrid = 0; return res; } -- 2.20.1