AK: Fix integer_sequence_generate_array

It was for some reason Architecture dependent.
Now we use size_t instead of unsinged long
This commit is contained in:
Hendiadyoin1 2021-03-07 14:34:40 +01:00 committed by Andreas Kling
parent 0b04363b01
commit f673f08bec
Notes: sideshowbarker 2024-07-18 21:13:16 +09:00

View file

@ -93,7 +93,7 @@ template<typename T, typename... Types>
Array(T, Types...) -> Array<T, sizeof...(Types) + 1>;
namespace Detail {
template<typename T, unsigned long... Is>
template<typename T, size_t... Is>
constexpr auto integer_sequence_generate_array([[maybe_unused]] const T offset, IntegerSequence<T, Is...>) -> Array<T, sizeof...(Is)>
{
return { { (offset + Is)... } };