mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-02 07:58:31 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user