bitset: Add a bitset_run_count_ex that lets you learn the value of the bits in the run

This commit is contained in:
nick
2013-08-09 16:49:38 +01:00
parent f590f8ed3c
commit 754949d43f
2 changed files with 29 additions and 9 deletions

View File

@@ -100,7 +100,7 @@ START_TEST(test_bit_runs)
ptr = 0;
for (i=0; i < 20; i += 1) {
int run = bit_run_count(buffer, ptr, 2048-ptr);
int run = bit_run_count(buffer, ptr, 2048-ptr, NULL);
fail_unless(
run == runs[i],
"run %d should have been %d, was %d",