Skip to content

Commit

Permalink
removed array
Browse files Browse the repository at this point in the history
  • Loading branch information
spran180 committed Jul 28, 2024
1 parent 44d91e1 commit 2c93cf4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/tests/roc_core/test_mov_histogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 2c93cf4

Please sign in to comment.