summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2013-12-30 10:34:29 -0800
committerAndy Hung <hunga@google.com>2013-12-30 10:36:19 -0800
commit523476a40b40857ca44cb6fab933469cd3598425 (patch)
tree5a40a1fa3643437003a6189336cd83d7fe9dc4bb /tools
parent04143e411f18557579651a41de8f20edc2f8856a (diff)
downloadframeworks_av-523476a40b40857ca44cb6fab933469cd3598425.zip
frameworks_av-523476a40b40857ca44cb6fab933469cd3598425.tar.gz
frameworks_av-523476a40b40857ca44cb6fab933469cd3598425.tar.bz2
Fix for Change 396851
Fix a typo in a variable name. Change-Id: I2555f729fc22b9c158ae488c8cefde029fa244cb Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/resampler_tools/fir.cpp2
1 files changed, 1 insertions, 1 deletions
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<int64_t>(floor(y * maxval + 0.5));
+ v = static_cast<int64_t>(floor(x * maxval + 0.5));
if (v >= maxval) {
return maxval - 1; // error!
}