aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2020-01-22 13:00:23 +0200
committerPaul Adenot <[email protected]>2020-01-22 12:00:23 +0100
commit0adc5ea9650acdbe5e1cc78ee0d0398400350c83 (patch)
tree0990cd3bc368e144602562efca9fc619a7cacbe7 /test
parent6cdf2fd22b7211bdfe5d7bc4a44430af36275151 (diff)
downloadcubeb-0adc5ea9650acdbe5e1cc78ee0d0398400350c83.tar.gz
cubeb-0adc5ea9650acdbe5e1cc78ee0d0398400350c83.zip
resampler: avoid integer signed comparison mismatch (#570)
Diffstat (limited to 'test')
-rw-r--r--test/test_resampler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_resampler.cpp b/test/test_resampler.cpp
index 6434556..7fb133d 100644
--- a/test/test_resampler.cpp
+++ b/test/test_resampler.cpp
@@ -918,7 +918,7 @@ TEST(cubeb, passthrough_resampler_fill_eq_input) {
long output_frame_count = 32;
float input[64] = {};
float output[64] = {};
- for (int i = 0; i < input_frame_count * channels; ++i) {
+ for (uint32_t i = 0; i < input_frame_count * channels; ++i) {
input[i] = 0.01 * i;
}
long got = resampler.fill(input, &input_frame_count, output, output_frame_count);
@@ -961,7 +961,7 @@ TEST(cubeb, passthrough_resampler_fill_short_input) {
long output_frame_count = 32;
float input[64] = {};
float output[64] = {};
- for (int i = 0; i < input_frame_count * channels; ++i) {
+ for (uint32_t i = 0; i < input_frame_count * channels; ++i) {
input[i] = 0.01 * i;
}
long got = resampler.fill(input, &input_frame_count, output, output_frame_count);
@@ -1031,7 +1031,7 @@ TEST(cubeb, passthrough_resampler_fill_input_left) {
const long output_frame_count = 32;
float input[96] = {};
float output[64] = {};
- for (int i = 0; i < input_frame_count * channels; ++i) {
+ for (uint32_t i = 0; i < input_frame_count * channels; ++i) {
input[i] = 0.01 * i;
}