summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib
diff options
context:
space:
mode:
authortrondeau2008-11-23 16:38:54 +0000
committertrondeau2008-11-23 16:38:54 +0000
commit8531d9655ee9067d4d2b060290fcf26e8c7472be (patch)
tree92a45b63390f091c95dcfac42cdf63d0ac856d0f /gnuradio-core/src/lib
parent5508c2179cf5738f274eaf9938dadff4c5f6e784 (diff)
downloadgnuradio-8531d9655ee9067d4d2b060290fcf26e8c7472be.tar.gz
gnuradio-8531d9655ee9067d4d2b060290fcf26e8c7472be.tar.bz2
gnuradio-8531d9655ee9067d4d2b060290fcf26e8c7472be.zip
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
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r--gnuradio-core/src/lib/general/gr_math.h2
1 files changed, 1 insertions, 1 deletions
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)