bloom: fix calloc invocation

Fix array member type (`char` vs `uint8_t`).

Found via scan-build.
dev/timer
René Kijewski 8 years ago committed by Oleg Hahm
parent 2e3a636b7e
commit 05eb6e73d9

@ -35,7 +35,7 @@ bloom_t *bloom_new(size_t size, size_t num_hashes, ...)
}
/* Allocate Bloom array */
if (!(bloom->a = calloc(ROUND(size), sizeof(char)))) {
if (!(bloom->a = calloc(ROUND(size), sizeof(uint8_t)))) {
free(bloom);
return NULL;
}

Loading…
Cancel
Save