Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bitops: fix clear_bit()
  • Loading branch information
perexg committed Sep 21, 2016
1 parent cf4880d commit e967779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitops.h
Expand Up @@ -40,7 +40,7 @@ static inline void set_bit(int bit, void *addr)
static inline void clear_bit(int bit, void *addr)
{
bitops_ulong_t *p = ((bitops_ulong_t *)addr) + BIT_WORD(bit);
*p &= BIT_MASK(bit);
*p &= ~BIT_MASK(bit);
}

static inline int test_bit(int bit, void *addr)
Expand Down

0 comments on commit e967779

Please sign in to comment.