mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Fix compile warnings
Fix compile warnings by adding cast.
This commit is contained in:
parent
09c5db44a4
commit
504a2e34a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue