Avoid "implicit conversion increases floating-point precision: 'float' to 'double'"

This commit is contained in:
Adam Lusch
2025-03-21 17:30:13 -05:00
committed by Christophe
parent 7e4b80ec23
commit 279f55d7eb

View File

@@ -345,7 +345,7 @@ namespace detail
template<int c>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a)
{
vec<L, T, Q> v(0.0f);
vec<L, T, Q> v(0);
for (int i = 0; i < L; ++i)
v[i] = a[c];
return v;