diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c index b9939de8b7..ed70152077 100644 --- a/libao2/ao_oss.c +++ b/libao2/ao_oss.c @@ -166,7 +166,7 @@ static int control(int cmd,void *arg){ { int format; if (!ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &format)) - if (format & (int)arg) + if ((unsigned int)format & (unsigned long)arg) return CONTROL_TRUE; return CONTROL_FALSE; }