diff options
author | lawnjelly <lawnjelly@gmail.com> | 2022-02-06 11:14:58 +0000 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2022-02-10 18:43:19 +0000 |
commit | 5298e16e80e032a7ff0c6a661b826859e5aeccd0 (patch) | |
tree | 71d1a20724bd477e59f2051d4f7c62dd4df5757b /core/math/math_funcs.h | |
parent | 38c851a3fa14983e60f74703fea2178d52358b92 (diff) |
Float literals - fix main primitives to use .f
Converts float literals from double format (e.g. 0.0) to float format (e.g. 0.0f) where appropriate for 32 bit calculations.
Diffstat (limited to 'core/math/math_funcs.h')
-rw-r--r-- | core/math/math_funcs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index f3d10c3f0d..6b5eb655d3 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -198,7 +198,7 @@ public: if ((value < 0 && p_y > 0) || (value > 0 && p_y < 0)) { value += p_y; } - value += 0.0; + value += 0.0f; return value; } static _ALWAYS_INLINE_ float fposmodp(float p_x, float p_y) { @@ -206,7 +206,7 @@ public: if (value < 0) { value += p_y; } - value += 0.0; + value += 0.0f; return value; } static _ALWAYS_INLINE_ double fposmodp(double p_x, double p_y) { |