Cast the unsigned int to signed, or NEAR_MATCH will not work.

This commit is contained in:
Marcus Meissner 1999-12-25 22:55:40 +00:00 committed by Alexandre Julliard
parent b4b9303e07
commit bac7be750b
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
DEFAULT_DEBUG_CHANNEL(wave)
/* Allow 1% deviation for sample rates (some ES137x cards) */
#define NEAR_MATCH(rate1,rate2) (((100*(rate1-rate2))/rate1)==0)
#define NEAR_MATCH(rate1,rate2) (((100*((int)(rate1)-(int)(rate2)))/(rate1))==0)
#ifdef HAVE_OSS