From 830d30896066b325d1ee0769ca116efdaef602f2 Mon Sep 17 00:00:00 2001 From: "monty@donna.mysql.com" <> Date: Wed, 20 Sep 2000 19:37:07 +0300 Subject: Fix for SAFE_MUTEX on windows --- mysys/thr_mutex.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mysys/thr_mutex.c') diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c index 9d9c3a1ce08..73d1d24d9a4 100644 --- a/mysys/thr_mutex.c +++ b/mysys/thr_mutex.c @@ -218,9 +218,8 @@ int safe_mutex_destroy(safe_mutex_t *mp, const char *file, uint line) pthread_mutex_destroy(&mp->global); pthread_mutex_destroy(&mp->mutex); #else - if (pthread_mutex_destroy(&mp->global) || - pthread_mutex_destroy(&mp->mutex)) - error=1; + error= (int) (pthread_mutex_destroy(&mp->global) || + pthread_mutex_destroy(&mp->mutex)); #endif return error; } -- cgit v1.2.1