Commit bac7be75 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent b4b9303e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment