From 8531d9655ee9067d4d2b060290fcf26e8c7472be Mon Sep 17 00:00:00 2001 From: trondeau Date: Sun, 23 Nov 2008 16:38:54 +0000 Subject: Tom's law: the simpler the function, the more prone I am to make errors. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10039 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gr_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnuradio-core') diff --git a/gnuradio-core/src/lib/general/gr_math.h b/gnuradio-core/src/lib/general/gr_math.h index f1bd208b8..9dd9680e3 100644 --- a/gnuradio-core/src/lib/general/gr_math.h +++ b/gnuradio-core/src/lib/general/gr_math.h @@ -82,7 +82,7 @@ static inline float gr_branchless_clip(float x, float clip) static inline float gr_clip(float x, float clip) { - float y; + float y = x; if(x > clip) y = clip; else if(x < -clip) -- cgit