summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-02-20 02:15:40 -0800
committerGitHub <[email protected]>2021-02-20 11:15:40 +0100
commit2375464213f9bb08e9ae9f0a5b264aaa268a6a3b (patch)
tree599ca2131286ba99c3a0b9a15dda4f304b38b5ee /src/raymath.h
parentd96b422809d84e445e9d581ea359b491f50dbddc (diff)
downloadraylib-2375464213f9bb08e9ae9f0a5b264aaa268a6a3b.tar.gz
raylib-2375464213f9bb08e9ae9f0a5b264aaa268a6a3b.zip
[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 <[email protected]>
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 44d41d4d..c9848a7f 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -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;
}