diff options
-rw-r--r-- | gnuradio-core/src/lib/general/gr_math.h | 2 |
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; } |