From: trondeau Date: Sun, 23 Nov 2008 16:38:54 +0000 (+0000) Subject: Tom's law: the simpler the function, the more prone I am to make errors. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8531d9655ee9067d4d2b060290fcf26e8c7472be;p=debian%2Fgnuradio 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 --- diff --git a/gnuradio-core/src/lib/general/gr_math.h b/gnuradio-core/src/lib/general/gr_math.h index f1bd208b..9dd9680e 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)