diff --git a/src/common/thirdparty/math/cmath.h b/src/common/thirdparty/math/cmath.h index 7059e5e57..26102e3f0 100644 --- a/src/common/thirdparty/math/cmath.h +++ b/src/common/thirdparty/math/cmath.h @@ -56,12 +56,12 @@ extern FFastTrig fasttrig; inline double fastcosbam(double v) { - return fasttrig.cos(v); + return fasttrig.cos(xs_CRoundToUInt(v)); } inline double fastsinbam(double v) { - return fasttrig.sin(v); + return fasttrig.sin(xs_CRoundToUInt(v)); } inline double fastcosdeg(double v)