Fix for Change 396851

Fix a typo in a variable name.

Change-Id: I2555f729fc22b9c158ae488c8cefde029fa244cb
Signed-off-by: Andy Hung <hunga@google.com>
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 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!
     }