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:
Abdelrahman Ehab 2024-05-07 23:37:31 +02:00 committed by GitHub
parent 0086bf8125
commit fcb626a122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
};