mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Cleanup compiler warnings
The unique_ptr / shared_ptr patch introduced a compiler warning. This corrects that issue.
This commit is contained in:
parent
a8c794602a
commit
bdcef948a5
@ -507,8 +507,8 @@ SUITE(span_tests)
|
||||
{
|
||||
auto arr = std::make_unique<int[]>(4);
|
||||
|
||||
for (auto i = 0; i < 4; i++)
|
||||
arr[i] = i + 1;
|
||||
for (auto i = 0U; i < 4; i++)
|
||||
arr[i] = gsl::narrow_cast<int>(i + 1);
|
||||
|
||||
{
|
||||
span<int> s{arr, 4};
|
||||
|
Loading…
Reference in New Issue
Block a user