diff --git a/src/thread/pthread_barrierattr_getpshared.c b/src/thread/pthread_barrierattr_getpshared.c index de970768f8c7227f971b40f50aebdb5097c89e60..8428bbecf38606b12e1667a4bb735c2d4f9591e4 100644 --- a/src/thread/pthread_barrierattr_getpshared.c +++ b/src/thread/pthread_barrierattr_getpshared.c @@ -2,6 +2,6 @@ int pthread_barrierattr_getpshared(const pthread_barrierattr_t *a, int *pshared) { - *pshared = *a; + *pshared = !!*a; return 0; }