diff options
-rw-r--r-- | src/bitvec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitvec.c b/src/bitvec.c index 592bfc24..00ae1505 100644 --- a/src/bitvec.c +++ b/src/bitvec.c @@ -216,7 +216,7 @@ int bitvec_set_uint(struct bitvec *bv, unsigned int ui, unsigned int num_bits) unsigned i; for (i = 0; i < num_bits; i++) { int bit = 0; - if (ui & (1 << (num_bits - i - 1))) + if (ui & (1u << (num_bits - i - 1))) bit = 1; rc = bitvec_set_bit(bv, bit); if (rc) |