diff options
Diffstat (limited to 'src/tools/chdman.cpp')
-rw-r--r-- | src/tools/chdman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp index e24d5a58588..45438bc1f82 100644 --- a/src/tools/chdman.cpp +++ b/src/tools/chdman.cpp @@ -518,7 +518,7 @@ public: // loop over channels and read the samples int channels = unsigned((std::min<std::size_t>)(m_info.channels, std::size(m_audio))); - int16_t *samplesptr[std::size(m_audio)]; + int16_t *samplesptr[sizeof(m_audio)/sizeof(*m_audio)]; for (int chnum = 0; chnum < channels; chnum++) { // read the sound samples |