mirror of
https://github.com/g-truc/glm.git
synced 2026-06-08 02:23:48 +00:00
Fix initialization of vec in unary operator-
This commit is contained in:
committed by
Christophe
parent
55661885dd
commit
2ac286d5c8
@@ -482,7 +482,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 --
|
||||
|
||||
Reference in New Issue
Block a user