From: Takashi Iwai Date: Wed, 29 Mar 2006 09:29:44 +0000 (+0000) Subject: Fix compile warnings X-Git-Tag: v1.0.11rc5~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=504a2e34a41425f73782065fd35946ed52b2cc0c;p=alsa-lib.git Fix compile warnings Fix compile warnings by adding cast. --- diff --git a/src/pcm/pcm_softvol.c b/src/pcm/pcm_softvol.c index 588d347d..8afca69d 100644 --- a/src/pcm/pcm_softvol.c +++ b/src/pcm/pcm_softvol.c @@ -99,7 +99,7 @@ typedef union { static inline int MULTI_DIV_int(int a, unsigned short b, int swap) { val_t v, x, y; - v.i = swap ? bswap_32(a) : a; + v.i = swap ? (int)bswap_32(a) : a; y.i = 0; #if __BYTE_ORDER == __LITTLE_ENDIAN x.i = (unsigned int)v.s[0] * b; @@ -110,7 +110,7 @@ static inline int MULTI_DIV_int(int a, unsigned short b, int swap) y.s[1] = x.s[0]; y.i += (int)v.s[0] * b; #endif - return swap ? bswap_32(y.i) : y.i; + return swap ? (int)bswap_32(y.i) : y.i; } /* (16bit x 16bit) >> 16 */