[Physics] Fix typecast warnings generated by visual studio 2019 (#1599)

* More warning fixes for physics and math

* fix a crash introduced with the warning changed.

Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
This commit is contained in:
Jeffery Myers
2021-02-20 02:15:40 -08:00
committed by GitHub
parent d96b422809
commit 2375464213
2 changed files with 101 additions and 87 deletions

View File

@@ -1162,7 +1162,7 @@ RMDEF Quaternion QuaternionIdentity(void)
// Computes the length of a quaternion
RMDEF float QuaternionLength(Quaternion q)
{
float result = (float)sqrt(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
float result = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
return result;
}