more testing with mingw

This commit is contained in:
AlbertoBSD
2021-10-26 04:06:36 +02:00
parent 17f5dccb05
commit 340228c60e

View File

@@ -77,13 +77,10 @@ static int oldbloom_check_add(struct oldbloom * bloom, const void * buffer, int
r = oldtest_bit_set_bit(bloom->bf, x, add);
ReleaseMutex(bloom->mutex);
#else
pthread_mutex_lock(&bloom->mutex);
pthread_mutex_lock((pthread_mutex_t*)&bloom->mutex);
r = oldtest_bit_set_bit(bloom->bf, x, add);
pthread_mutex_unlock(&bloom->mutex);
pthread_mutex_unlock((pthread_mutex_t*)&bloom->mutex);
#endif
pthread_mutex_unlock(&bloom->mutex);
if (r) {
hits++;
} else if (!add) {