From 6d91e15b739b8b7ba3405b2ce9b9b7acb146174f Mon Sep 17 00:00:00 2001 From: eb Date: Thu, 31 Jul 2008 02:52:49 +0000 Subject: [PATCH] wrong sign git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9079 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gr_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnuradio-core/src/lib/general/gr_math.h b/gnuradio-core/src/lib/general/gr_math.h index 74ac6086..957a0e12 100644 --- a/gnuradio-core/src/lib/general/gr_math.h +++ b/gnuradio-core/src/lib/general/gr_math.h @@ -85,7 +85,7 @@ static inline float gr_clip(float x, float clip) float y; if(x > clip) y = clip; - else if(x < clip) + else if(x < -clip) y = -clip; return y; } -- 2.47.2