Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmaples/gsl into dev/jomaples/unsigned

This commit is contained in:
Jordan Maples [MSFT] 2020-02-03 13:52:11 -08:00
commit 3e40b3fa4b
2 changed files with 3 additions and 3 deletions

View File

@ -475,7 +475,7 @@ public:
typename details::calculate_subspan_type<ElementType, Extent, Offset, Count>::type
{
Expects((size() >= Offset) &&
(Count == dynamic_extent || (Offset + Count <= size())));
(Count == dynamic_extent || (Count <= size() - Offset)));
return {data() + Offset, Count == dynamic_extent ? size() - Offset : Count};
}