summaryrefslogtreecommitdiff
path: root/src/htsthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsthread.c')
-rw-r--r--src/htsthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsthread.c b/src/htsthread.c
index 364757b..143c22c 100644
--- a/src/htsthread.c
+++ b/src/htsthread.c
@@ -196,7 +196,7 @@ HTSEXT_API void hts_mutexlock(htsmutex * mutex) {
}
assertf(*mutex != NULL);
#ifdef _WIN32
- assert((*mutex)->handle != NULL);
+ assertf((*mutex)->handle != NULL);
WaitForSingleObject((*mutex)->handle, INFINITE);
#else
pthread_mutex_lock(&(*mutex)->handle);
@@ -206,7 +206,7 @@ HTSEXT_API void hts_mutexlock(htsmutex * mutex) {
HTSEXT_API void hts_mutexrelease(htsmutex * mutex) {
assertf(mutex != NULL && *mutex != NULL);
#ifdef _WIN32
- assert((*mutex)->handle != NULL);
+ assertf((*mutex)->handle != NULL);
ReleaseMutex((*mutex)->handle);
#else
pthread_mutex_unlock(&(*mutex)->handle);