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
36e7a9ad69
commit
a583c59e16
@@ -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 --
|
||||
|
||||
Reference in New Issue
Block a user