Fix initialization of vec in unary operator-

This commit is contained in:
Francisco Facioni
2025-11-06 13:35:58 +01:00
committed by Christophe
parent 36e7a9ad69
commit a583c59e16

View File

@@ -462,7 +462,7 @@ namespace glm
template<typename T, qualifier Q>
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 --