diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2017-08-22 17:31:53 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2017-08-22 17:31:53 -0300 |
| commit | 5a04c0ad22db76bf1950f7e2df1aae6a8866ac4e (patch) | |
| tree | 4e50609ec92e2322bd43deea1491bdad12e2c5bb /RtAudio.cpp | |
| parent | b9d8c432dd98781b13ab2c502347342193e2fe1b (diff) | |
Fix a signed-unsigned comparison.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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();
|
