mirror of
https://github.com/g-truc/glm.git
synced 2024-11-25 18:04:34 +00:00
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.
This commit is contained in:
parent
0086bf8125
commit
fcb626a122
@ -85,7 +85,7 @@ namespace detail
|
||||
struct storage
|
||||
{
|
||||
typedef struct type {
|
||||
T data[L];
|
||||
T data[static_cast<size_t>(L)];
|
||||
} type;
|
||||
};
|
||||
|
||||
@ -94,7 +94,7 @@ namespace detail
|
||||
struct storage<L, T, true>
|
||||
{
|
||||
typedef struct alignas(L * sizeof(T)) type {
|
||||
T data[L];
|
||||
T data[static_cast<size_t>(L)];
|
||||
} type;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user