Fix raymath warning with floor to floorf

This commit is contained in:
Jeffery Myers 2022-07-18 18:59:59 -07:00
parent 0f7c4f762f
commit b9f405c7b3

View File

@ -201,7 +201,7 @@ RMAPI float Remap(float value, float inputStart, float inputEnd, float outputSta
// Wrap input value from min to max // Wrap input value from min to max
RMAPI float Wrap(float value, float min, float max) RMAPI float Wrap(float value, float min, float max)
{ {
float result = value - (max - min)*floor((value - min)/(max - min)); float result = value - (max - min)*floorf((value - min)/(max - min));
return result; return result;
} }