]> git.gag.com Git - debian/gnuradio/commitdiff
Tom's law: the simpler the function, the more prone I am to make errors.
authortrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 23 Nov 2008 16:38:54 +0000 (16:38 +0000)
committertrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 23 Nov 2008 16:38:54 +0000 (16:38 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10039 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/general/gr_math.h

index f1bd208b8c4c9b7d2b48193d99dbb25f9a5e8734..9dd9680e34492022ca82045dbb0862e7dd46397f 100644 (file)
@@ -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)