diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-30 15:15:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-30 15:15:10 +0200 |
| commit | 22d9015d4788bca8da7113ad187f0b04cfbc4216 (patch) | |
| tree | e7b8cd1dd19bfb0ea7eef937168cdd2aea29b454 /test/dcp_test.cc | |
| parent | 63a81274aa1423ebb593cad9dfe0501853e1c1c5 (diff) | |
Fix some warnings raised by the macOS compiler.
Diffstat (limited to 'test/dcp_test.cc')
| -rw-r--r-- | test/dcp_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc index 92569430..d0185d76 100644 --- a/test/dcp_test.cc +++ b/test/dcp_test.cc @@ -216,7 +216,7 @@ test_rewriting_sound(string name, bool modify) bool need_to_modify = modify; for (int i = 0; i < A_sound->asset()->intrinsic_duration(); ++i) { auto sf = reader->get_frame (i); - float* out[sf->channels()]; + vector<float*> out(sf->channels()); for (int j = 0; j < sf->channels(); ++j) { out[j] = new float[sf->samples()]; } @@ -229,7 +229,7 @@ test_rewriting_sound(string name, bool modify) } } } - writer->write(out, sf->channels(), sf->samples()); + writer->write(out.data(), sf->channels(), sf->samples()); for (int j = 0; j < sf->channels(); ++j) { delete[] out[j]; } |
