diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-01 01:32:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 01:32:07 +0100 |
commit | de9446186dd00027921affc4183f19ab1c224322 (patch) | |
tree | 89916d57c088a6a34527713cf69934c4ff2d83af /core/math/quaternion.h | |
parent | 9458a8f74254f1fe7f227ab92fbc3b8c9cbaa64a (diff) | |
parent | 1485924a2b90d15949fe544097ce8d00d527e9e7 (diff) |
Merge pull request #58488 from lawnjelly/float_literals_casts
Diffstat (limited to 'core/math/quaternion.h')
-rw-r--r-- | core/math/quaternion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quaternion.h b/core/math/quaternion.h index f8a2c6456e..38729ac3df 100644 --- a/core/math/quaternion.h +++ b/core/math/quaternion.h @@ -145,7 +145,7 @@ struct _NO_DISCARD_ Quaternion { Vector3 c = v0.cross(v1); real_t d = v0.dot(v1); - if (d < -1.0f + CMP_EPSILON) { + if (d < -1.0f + (real_t)CMP_EPSILON) { x = 0; y = 1; z = 0; |