From c40da37fafa4a3b34ea801fffefd28c7281d61c3 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 27 Feb 2025 13:20:44 +0000 Subject: [PATCH] wdsp: Remove redundant code that causes stack overflow on Mac. For #2324. --- wdsp/emnr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wdsp/emnr.cpp b/wdsp/emnr.cpp index 27c656710..6e6660e3a 100644 --- a/wdsp/emnr.cpp +++ b/wdsp/emnr.cpp @@ -444,6 +444,7 @@ EMNR::G::G( std::copy(Calculus::GG.begin(), Calculus::GG.end(), GG.begin()); std::copy(Calculus::GGS.begin(), Calculus::GGS.end(), GGS.begin()); + /* Removed as redundant and causes a stack overflow on Mac - see #2324 // We keep this pretty useless part just in case... if ((fileb = fopen("calculus", "rb"))) { @@ -462,7 +463,7 @@ EMNR::G::G( std::copy(ggs.begin(), ggs.end(), GGS.begin()); } fclose(fileb); - } + }*/ } void EMNR::G::calc_gamma0()