tests: Fix a couple of compile warnings
This commit is contained in:
@@ -58,7 +58,8 @@ static inline int bit_run_count(char* b, int from, int len) {
|
||||
;
|
||||
|
||||
/* FIXME: debug this later */
|
||||
/*for (; (from+count) % 64 != 0 && len > 0; len--)
|
||||
/*
|
||||
for (; (from+count) % 64 != 0 && len > 0; len--)
|
||||
if (bit_has_value(b, from+count, first_value))
|
||||
count++;
|
||||
else
|
||||
@@ -71,8 +72,8 @@ static inline int bit_run_count(char* b, int from, int len) {
|
||||
}
|
||||
for (; len > 0; len--)
|
||||
if (bit_is_set(b, from+count))
|
||||
count++;*/
|
||||
|
||||
count++;
|
||||
*/
|
||||
return count;
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#include "bitset.h"
|
||||
|
||||
#define assert_bitset_is( map, val ) {\
|
||||
uint64_t *num = map->bits; \
|
||||
uint64_t *num = (uint64_t*) map->bits; \
|
||||
ck_assert_int_eq( val, *num ); \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user