From b44b4efad3dcc60fc49e5714df7ee0083a5a6b0e Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Wed, 11 Mar 2020 11:31:16 +0100 Subject: [PATCH] Magic by @jpcima to solve the clang segfault --- src/sfizz/EventEnvelopes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/EventEnvelopes.h b/src/sfizz/EventEnvelopes.h index c9631014..c56d1dd6 100644 --- a/src/sfizz/EventEnvelopes.h +++ b/src/sfizz/EventEnvelopes.h @@ -94,7 +94,7 @@ protected: Type currentValue { 0.0 }; private: static_assert(std::is_arithmetic::value, "Type should be arithmetic"); - std::function function { [](Type input) { return input; } }; + std::function function { [](Type input) -> Type { return input; } }; int maxCapacity { config::defaultSamplesPerBlock }; void prepareEvents(int blockLength); bool resetEvents { false };