diff --git a/src/tests/roc_core/test_mov_histogram.cpp b/src/tests/roc_core/test_mov_histogram.cpp index 23e4c6a7f..6473181c7 100644 --- a/src/tests/roc_core/test_mov_histogram.cpp +++ b/src/tests/roc_core/test_mov_histogram.cpp @@ -56,10 +56,8 @@ TEST(movhistogram, single_pass) { win_length); CHECK(hist.is_valid()); - size_t values[win_length]; for (size_t i = 0; i < win_length; i++) { - values[i] = i * num_bins; - hist.add_value(values[i]); + hist.add_value(i * num_bins); } for (size_t i = 0; i < num_bins; ++i) { @@ -77,10 +75,8 @@ TEST(movhistogram, rolling_window) { win_length); CHECK(hist.is_valid()); - size_t values[win_length * 2]; for (size_t i = 0; i < win_length * 2; i++) { - values[i] = i * (value_range_max / num_bins); - hist.add_value(values[i]); + hist.add_value(i * (value_range_max / num_bins)); } for (size_t i = 0; i < num_bins; ++i) {