Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bitops: compilatin fixes
  • Loading branch information
perexg committed Aug 30, 2016
1 parent 6ee756a commit fd7806a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitops.h
Expand Up @@ -33,13 +33,13 @@ typedef uint32_t bitops_ulong_t;

static inline void set_bit(int bit, void *addr)
{
bitops_ulong_t *p = ((unsigned long *)addr) + BIT_WORD(bit);
bitops_ulong_t *p = ((bitops_ulong_t *)addr) + BIT_WORD(bit);
*p |= BIT_MASK(bit);
}

static inline void clear_bit(int bit, void *addr)
{
bitops_ulong_t *p = ((unsigned long *)addr) + BIT_WORD(bit);
bitops_ulong_t *p = ((bitops_ulong_t *)addr) + BIT_WORD(bit);
*p &= BIT_MASK(bit);
}

Expand Down

0 comments on commit fd7806a

Please sign in to comment.