summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authoreb2008-07-31 02:52:49 +0000
committereb2008-07-31 02:52:49 +0000
commit6d91e15b739b8b7ba3405b2ce9b9b7acb146174f (patch)
treeb1a9e3bfe8ad2abc0e4dc7f0bfac82cb648c3bc8 /gnuradio-core
parent1a3e74752984692b090ed1902914f900dc7de150 (diff)
downloadgnuradio-6d91e15b739b8b7ba3405b2ce9b9b7acb146174f.tar.gz
gnuradio-6d91e15b739b8b7ba3405b2ce9b9b7acb146174f.tar.bz2
gnuradio-6d91e15b739b8b7ba3405b2ce9b9b7acb146174f.zip
wrong sign
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9079 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-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 74ac6086a..957a0e12a 100644
--- a/gnuradio-core/src/lib/general/gr_math.h
+++ b/gnuradio-core/src/lib/general/gr_math.h
@@ -85,7 +85,7 @@ static inline float gr_clip(float x, float clip)
float y;
if(x > clip)
y = clip;
- else if(x < clip)
+ else if(x < -clip)
y = -clip;
return y;
}