Fix a signed-unsigned comparison.
authorStephen Sinclair <radarsat1@gmail.com>
Tue, 22 Aug 2017 20:31:53 +0000 (17:31 -0300)
committerStephen Sinclair <radarsat1@gmail.com>
Tue, 22 Aug 2017 20:31:53 +0000 (17:31 -0300)
RtAudio.cpp

index 75c98405f05a389a35d735404ee20c2d1df9a104..603da0a163699d25b77512d19f505292e5d8d69d 100644 (file)
@@ -9113,7 +9113,7 @@ bool RtApiOss :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigned
   }\r
 \r
   // Verify the sample rate setup worked.\r
-  if ( abs( srate - sampleRate ) > 100 ) {\r
+  if ( abs( srate - (int)sampleRate ) > 100 ) {
     close( fd );\r
     errorStream_ << "RtApiOss::probeDeviceOpen: device (" << ainfo.name << ") does not support sample rate (" << sampleRate << ").";\r
     errorText_ = errorStream_.str();\r