Skip to content
Snippets Groups Projects
Commit bac7be75 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

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

parent b4b9303e
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
DEFAULT_DEBUG_CHANNEL(wave) DEFAULT_DEBUG_CHANNEL(wave)
/* Allow 1% deviation for sample rates (some ES137x cards) */ /* 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 #ifdef HAVE_OSS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment