diff options
Diffstat (limited to '3rdparty/portaudio/qa/loopback/src/paqa.c')
-rw-r--r-- | 3rdparty/portaudio/qa/loopback/src/paqa.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/3rdparty/portaudio/qa/loopback/src/paqa.c b/3rdparty/portaudio/qa/loopback/src/paqa.c index a3ed4acfb55..909916b1388 100644 --- a/3rdparty/portaudio/qa/loopback/src/paqa.c +++ b/3rdparty/portaudio/qa/loopback/src/paqa.c @@ -120,8 +120,8 @@ typedef struct LoopbackContext_s volatile int minInputOutputDelta; volatile int maxInputOutputDelta; - int minFramesPerBuffer; - int maxFramesPerBuffer; + unsigned long minFramesPerBuffer; + unsigned long maxFramesPerBuffer; int primingCount; TestParameters *test; volatile int done; @@ -849,7 +849,7 @@ static int PaQa_SingleLoopBackTest( UserOptions *userOptions, TestParameters *te { double latencyMSec; - printf( "%4d-%4d | ", + printf( "%4lu-%4lu | ", loopbackContext.minFramesPerBuffer, loopbackContext.maxFramesPerBuffer ); @@ -1351,7 +1351,8 @@ int TestSampleFormatConversion( void ) const char charInput[] = { 127, 64, -64, -128 }; const unsigned char ucharInput[] = { 255, 128+64, 64, 0 }; const short shortInput[] = { 32767, 32768/2, -32768/2, -32768 }; - const int intInput[] = { 2147483647, 2147483647/2, -1073741824 /*-2147483648/2 doesn't work in msvc*/, -2147483648 }; + const int int_minus_2147483648 = (-2147483647 - 1); /*"-2147483648" as a signed integer. See PR #814*/ + const int intInput[] = { 2147483647, 2147483647/2, int_minus_2147483648/2, int_minus_2147483648 }; float floatOutput[4]; short shortOutput[4]; |