diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index 1bdc158..959dde0 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -507,8 +507,8 @@ SUITE(span_tests) { auto arr = std::make_unique(4); - for (auto i = 0; i < 4; i++) - arr[i] = i + 1; + for (auto i = 0U; i < 4; i++) + arr[i] = gsl::narrow_cast(i + 1); { span s{arr, 4};