summaryrefslogtreecommitdiffstats
path: root/tools/resampler_tools/fir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/resampler_tools/fir.cpp')
-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!
}