commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10039 - gnuradio/trunk/gnuradio-core/src/lib/general


From: trondeau
Subject: [Commit-gnuradio] r10039 - gnuradio/trunk/gnuradio-core/src/lib/general
Date: Sun, 23 Nov 2008 09:38:54 -0700 (MST)

Author: trondeau
Date: 2008-11-23 09:38:54 -0700 (Sun, 23 Nov 2008)
New Revision: 10039

Modified:
   gnuradio/trunk/gnuradio-core/src/lib/general/gr_math.h
Log:
Tom's law: the simpler the function, the more prone I am to make errors.

Modified: gnuradio/trunk/gnuradio-core/src/lib/general/gr_math.h
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/general/gr_math.h      2008-11-23 
16:28:16 UTC (rev 10038)
+++ gnuradio/trunk/gnuradio-core/src/lib/general/gr_math.h      2008-11-23 
16:38:54 UTC (rev 10039)
@@ -82,7 +82,7 @@
 
 static inline float gr_clip(float x, float clip)
 {
-  float y;
+  float y = x;
   if(x > clip)
     y = clip;
   else if(x < -clip)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]