tests: Fix a couple of compile warnings

This commit is contained in:
nick
2013-07-23 17:22:23 +01:00
parent 1b0fe24529
commit d18423c153
2 changed files with 17 additions and 16 deletions

View File

@@ -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;
}

View File

@@ -2,8 +2,8 @@
#include "bitset.h"
#define assert_bitset_is( map, val ) { \
uint64_t *num = map->bits; \
#define assert_bitset_is( map, val ) {\
uint64_t *num = (uint64_t*) map->bits; \
ck_assert_int_eq( val, *num ); \
}