From 5a04c0ad22db76bf1950f7e2df1aae6a8866ac4e Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Tue, 22 Aug 2017 17:31:53 -0300 Subject: [PATCH] Fix a signed-unsigned comparison. --- RtAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RtAudio.cpp b/RtAudio.cpp index 75c9840..603da0a 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -9113,7 +9113,7 @@ bool RtApiOss :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigned } // Verify the sample rate setup worked. - if ( abs( srate - sampleRate ) > 100 ) { + if ( abs( srate - (int)sampleRate ) > 100 ) { close( fd ); errorStream_ << "RtApiOss::probeDeviceOpen: device (" << ainfo.name << ") does not support sample rate (" << sampleRate << ")."; errorText_ = errorStream_.str(); -- 2.30.2