bitset: squash one more bug

This commit is contained in:
nick
2013-07-25 10:58:50 +01:00
parent a5870b8e9b
commit bc9ce93648
2 changed files with 48 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ static inline void bit_clear_range(char* b, uint64_t from, uint64_t len)
}
if (len >= 8) {
memset(b+(from/8), 0, ( len/8 ) + 1);
memset(b+(from/8), 0, len/8 );
from += len;
len = (len%8);
from -= len;