summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bitvec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitvec.c b/src/bitvec.c
index 04c465a8..95d78a5c 100644
--- a/src/bitvec.c
+++ b/src/bitvec.c
@@ -90,7 +90,7 @@ enum bit_value bitvec_get_bit_pos_high(const struct bitvec *bv,
bitval = bitval2mask(H, bitnum);
- if (bv->data[bytenum] & bitval)
+ if ((bv->data[bytenum] & (1 << bitnum)) == bitval)
return H;
return L;