diff --git a/glm/detail/type_vec3.inl b/glm/detail/type_vec3.inl index fed82bf61..cd7cfa1f6 100644 --- a/glm/detail/type_vec3.inl +++ b/glm/detail/type_vec3.inl @@ -482,7 +482,7 @@ namespace glm template GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<3, T, Q> operator-(vec<3, T, Q> const& v) { - return vec<3, T, Q>(0) -= v; + return vec<3, T, Q>(T(0)) -= v; } // -- Binary arithmetic operators --