From 019d478818950f7880d2c0f80d8fc8f963e9736b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 22 Jul 2024 09:31:50 +0200 Subject: Fix allocation of resampler_input_buffer invoking undefined behavior - thanks to John Auld for finding this. --- src/drumgizmo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drumgizmo.h') diff --git a/src/drumgizmo.h b/src/drumgizmo.h index 0ee51e6..a47898b 100644 --- a/src/drumgizmo.h +++ b/src/drumgizmo.h @@ -103,7 +103,7 @@ protected: Random rand; std::array zita; - std::array, NUM_CHANNELS> resampler_input_buffer; + std::array, NUM_CHANNELS> resampler_input_buffer; double ratio = 1.0; std::vector scratch_buffer; }; -- cgit v1.2.3