From f95e8445eff8b31dc130756601a528c6f34ceb7d Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 7 Feb 2017 21:36:24 -0700 Subject: [PATCH] common: fix build error on windows (M_PI->Q_PI) --- common/mathlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/mathlib.cc b/common/mathlib.cc index 12b3ee04..c561c726 100644 --- a/common/mathlib.cc +++ b/common/mathlib.cc @@ -253,7 +253,7 @@ static float Lanczos1D(float x, float a) if (x < -a || x >= a) return 0; - float lanczos = (a * sinf(M_PI * x) * sinf(M_PI * x / a)) / (M_PI * M_PI * x * x); + float lanczos = (a * sinf(Q_PI * x) * sinf(Q_PI * x / a)) / (Q_PI * Q_PI * x * x); return lanczos; }