diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-07-17 20:01:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-07-17 20:02:08 +0200 |
| commit | e0fe726fe76b0a8a5b36ec2fd2884617e75aae94 (patch) | |
| tree | d94d9b27d85e94fc5e9224444565dac6f3a764c1 /test | |
| parent | ddf516a1bad4b9c3ad32a358cc016e4fe5511b6d (diff) | |
Fix a couple of reserve()s that should be resize() (#2285).
Diffstat (limited to 'test')
| -rw-r--r-- | test/audio_filter_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/audio_filter_test.cc b/test/audio_filter_test.cc index a25878637..8f0b9e794 100644 --- a/test/audio_filter_test.cc +++ b/test/audio_filter_test.cc @@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE (audio_filter_impulse_kernel_test) { AudioFilter f (0.02); - f._ir.reserve(f._M + 1); + f._ir.resize(f._M + 1); f._ir[0] = 1; for (int i = 1; i <= f._M; ++i) { f._ir[i] = 0; |
