From fcb626a1228685c697e5360ba1f02f2ae0fec45e Mon Sep 17 00:00:00 2001 From: Abdelrahman Ehab Date: Tue, 7 May 2024 23:37:31 +0200 Subject: [PATCH] Update qualifier.hpp Added a static cast to prevent the "conversion to long unsigned int from int may change the sign of the result" compiler warning. --- glm/detail/qualifier.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/detail/qualifier.hpp b/glm/detail/qualifier.hpp index cb4e108a..e3fe3f6f 100644 --- a/glm/detail/qualifier.hpp +++ b/glm/detail/qualifier.hpp @@ -85,7 +85,7 @@ namespace detail struct storage { typedef struct type { - T data[L]; + T data[static_cast(L)]; } type; }; @@ -94,7 +94,7 @@ namespace detail struct storage { typedef struct alignas(L * sizeof(T)) type { - T data[L]; + T data[static_cast(L)]; } type; };