- cast arguments for fastcos/sinbam

Use xs_Float to ensure proper wraparound which is important here.
This commit is contained in:
Christoph Oelckers 2022-04-15 22:31:12 +02:00
parent a669d3718f
commit c8296f0d7c
1 changed files with 2 additions and 2 deletions

View File

@ -56,12 +56,12 @@ extern FFastTrig fasttrig;
inline double fastcosbam(double v) inline double fastcosbam(double v)
{ {
return fasttrig.cos(v); return fasttrig.cos(xs_CRoundToUInt(v));
} }
inline double fastsinbam(double v) inline double fastsinbam(double v)
{ {
return fasttrig.sin(v); return fasttrig.sin(xs_CRoundToUInt(v));
} }
inline double fastcosdeg(double v) inline double fastcosdeg(double v)