From 28293041546b587c22c878bcb04326454ebebbe4 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Thu, 11 May 2000 14:12:34 +0000 Subject: [PATCH] Fixed C++ warnings --- include/header.h | 1 + include/pcm.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/header.h b/include/header.h index 0d04fc1d..52e2c9f0 100644 --- a/include/header.h +++ b/include/header.h @@ -25,5 +25,6 @@ #include #include #include +#include #include diff --git a/include/pcm.h b/include/pcm.h index 53d84ee6..57d23209 100644 --- a/include/pcm.h +++ b/include/pcm.h @@ -25,7 +25,7 @@ static inline size_t bitset_size(int nbits) static inline bitset_t *bitset_alloc(int nbits) { - return calloc(bitset_size(nbits), sizeof(bitset_t)); + return (bitset_t*) calloc(bitset_size(nbits), sizeof(bitset_t)); } static inline void bitset_set(bitset_t *bitmap, unsigned int pos) @@ -76,7 +76,7 @@ static inline void bitset_one(bitset_t *dst, unsigned int nbits) { bitset_t *end = dst + bitset_size(nbits); while (dst < end) - *dst++ = -1; + *dst++ = ~(bitset_t)0; } typedef struct snd_pcm snd_pcm_t; -- 2.47.1