From 523476a40b40857ca44cb6fab933469cd3598425 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Mon, 30 Dec 2013 10:34:29 -0800 Subject: Fix for Change 396851 Fix a typo in a variable name. Change-Id: I2555f729fc22b9c158ae488c8cefde029fa244cb Signed-off-by: Andy Hung --- tools/resampler_tools/fir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/resampler_tools/fir.cpp b/tools/resampler_tools/fir.cpp index 27a9b05..3d6a74d 100644 --- a/tools/resampler_tools/fir.cpp +++ b/tools/resampler_tools/fir.cpp @@ -32,7 +32,7 @@ static inline double sqr(double x) { static inline int64_t toint(double x, int64_t maxval) { int64_t v; - v = static_cast(floor(y * maxval + 0.5)); + v = static_cast(floor(x * maxval + 0.5)); if (v >= maxval) { return maxval - 1; // error! } -- cgit v1.1