From 5d113d1c70f615c814f77a5cbcd09aac41c447c0 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 25 Aug 2023 17:34:18 -0400 Subject: [PATCH] Odd address sanitizer complain --- Grid/algorithms/approx/Chebyshev.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Grid/algorithms/approx/Chebyshev.h b/Grid/algorithms/approx/Chebyshev.h index 1d6984f3..130daf6c 100644 --- a/Grid/algorithms/approx/Chebyshev.h +++ b/Grid/algorithms/approx/Chebyshev.h @@ -90,9 +90,8 @@ public: order=_order; if(order < 2) exit(-1); - Coeffs.resize(order); - Coeffs.assign(0.,order); - Coeffs[order-1] = 1.; + Coeffs.resize(order,0.0); + Coeffs[order-1] = 1.0; }; // PB - more efficient low pass drops high modes above the low as 1/x uses all Chebyshev's.