From bdcef948a5ee99a6e8d969ddbad824c9ef3fd71a Mon Sep 17 00:00:00 2001 From: Rian Quinn Date: Wed, 16 Nov 2016 10:42:46 -0700 Subject: [PATCH] Cleanup compiler warnings The unique_ptr / shared_ptr patch introduced a compiler warning. This corrects that issue. --- tests/span_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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};