summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/chdman.cpp
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2023-02-01 10:00:25 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2023-02-01 10:00:25 +0700
commitc4830168a56953af9714907664ceee72999df70c (patch)
tree9e8c11632e1a415467ae8e2063dbe76617f62a7f /src/tools/chdman.cpp
parent8518c8421555e9ad7443e4537ea02ed6d4f4c441 (diff)
osd/tools: msvc fixes
* xinput.h depends on windows.h * avoid use of non-standard variable-length arrays
Diffstat (limited to 'src/tools/chdman.cpp')
-rw-r--r--src/tools/chdman.cpp2
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