From e9fea77bcb0608718b14dfa21cb9428244e4d46b Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Mon, 3 Feb 2020 18:31:50 -0800 Subject: [PATCH] Update include/gsl/span Co-Authored-By: Casey Carter --- include/gsl/span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/span b/include/gsl/span index 09a10a9..62ea0a0 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -207,7 +207,7 @@ namespace details constexpr span_iterator& operator-=(const difference_type n) noexcept { Expects(begin_ && end_ && current_); - if (n > 0) Expects(end_ - current_ >= n); + if (n > 0) Expects(current_ - begin_ >= n); if (n < 0) Expects(end_ - current_ >= -n); current_ -= n; return *this;