aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_resampler.cpp
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2016-03-24 16:42:27 +0100
committerPaul Adenot <[email protected]>2016-03-24 16:45:18 +0100
commita820f6bf5bb7f0e27d00d2388a074e575c6f3319 (patch)
tree5afea1bedb28e212d6370b476bc07aec970acaa3 /src/cubeb_resampler.cpp
parent80356a005db1a5a6cf01fd76f8f337f6b4119997 (diff)
downloadcubeb-a820f6bf5bb7f0e27d00d2388a074e575c6f3319.tar.gz
cubeb-a820f6bf5bb7f0e27d00d2388a074e575c6f3319.zip
Fix warning in cubeb_resampler.cpp by adding parenthesis.
Diffstat (limited to 'src/cubeb_resampler.cpp')
-rw-r--r--src/cubeb_resampler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cubeb_resampler.cpp b/src/cubeb_resampler.cpp
index 378d729..215749d 100644
--- a/src/cubeb_resampler.cpp
+++ b/src/cubeb_resampler.cpp
@@ -37,10 +37,10 @@ to_speex_quality(cubeb_resampler_quality q)
long noop_resampler::fill(void * input_buffer, long * input_frames_count,
void * output_buffer, long output_frames)
{
- assert(input_buffer && output_buffer &&
- *input_frames_count >= output_frames ||
- !input_buffer && (!input_frames_count || *input_frames_count == 0) ||
- !output_buffer && output_frames == 0);
+ assert((input_buffer && output_buffer &&
+ *input_frames_count >= output_frames) ||
+ (!input_buffer && (!input_frames_count || *input_frames_count == 0)) ||
+ (!output_buffer && output_frames == 0));
if (output_buffer == nullptr) {
output_frames = *input_frames_count;