diff options
Diffstat (limited to 'intern/moto/include/MT_Vector2.inl')
-rw-r--r-- | intern/moto/include/MT_Vector2.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/moto/include/MT_Vector2.inl b/intern/moto/include/MT_Vector2.inl index 860f9bad830..c975558b770 100644 --- a/intern/moto/include/MT_Vector2.inl +++ b/intern/moto/include/MT_Vector2.inl @@ -17,7 +17,7 @@ GEN_INLINE MT_Vector2& MT_Vector2::operator*=(MT_Scalar s) { GEN_INLINE MT_Vector2& MT_Vector2::operator/=(MT_Scalar s) { MT_assert(!MT_fuzzyZero(s)); - return *this *= 1.0 / s; + return *this *= 1.0f / s; } GEN_INLINE MT_Vector2 operator+(const MT_Vector2& v1, const MT_Vector2& v2) { @@ -40,7 +40,7 @@ GEN_INLINE MT_Vector2 operator*(MT_Scalar s, const MT_Vector2& v) { return v * s GEN_INLINE MT_Vector2 operator/(const MT_Vector2& v, MT_Scalar s) { MT_assert(!MT_fuzzyZero(s)); - return v * (1.0 / s); + return v * (1.0f / s); } GEN_INLINE MT_Scalar MT_Vector2::dot(const MT_Vector2& vv) const { |