From 8aa60bbeff6b917983bf4105df863446a6d45c04 Mon Sep 17 00:00:00 2001 From: christophe Date: Sun, 12 Apr 2020 16:33:44 +0200 Subject: [PATCH] Tentative fix of Clang warnings --- glm/detail/type_vec1.inl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glm/detail/type_vec1.inl b/glm/detail/type_vec1.inl index d0f49fd3..c5883ceb 100644 --- a/glm/detail/type_vec1.inl +++ b/glm/detail/type_vec1.inl @@ -485,35 +485,35 @@ namespace glm GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<1, T, Q> operator<<(T scalar, vec<1, T, Q> const& v) { return vec<1, T, Q>( - scalar << v.x); + static_cast(scalar << v.x)); } template GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<1, T, Q> operator<<(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2) { return vec<1, T, Q>( - v1.x << v2.x); + static_cast(v1.x << v2.x)); } template GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<1, T, Q> operator>>(vec<1, T, Q> const& v, T scalar) { return vec<1, T, Q>( - v.x >> scalar); + static_cast(v.x >> scalar)); } template GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<1, T, Q> operator>>(T scalar, vec<1, T, Q> const& v) { return vec<1, T, Q>( - scalar >> v.x); + static_cast(scalar >> v.x)); } template GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<1, T, Q> operator>>(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2) { return vec<1, T, Q>( - v1.x >> v2.x); + static_cast(v1.x >> v2.x)); } template