Skip to content

Commit

Permalink
more testing with mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
albertobsd committed Oct 26, 2021
1 parent 17f5dcc commit 340228c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions oldbloom/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 340228c

Please sign in to comment.