Skip to content

Commit

Permalink
Fix stupidness
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jul 28, 2020
1 parent ba4baa0 commit 44d9cfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stl/inc/algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -4975,13 +4975,13 @@ namespace ranges {
} else if constexpr (bidirectional_iterator<_It>) {
_RANGES _Reverse_common(_First, _Mid);
_RANGES _Reverse_common(_Mid, _End);
auto _Result = _RANGES _Reverse_until_sentinel_unchecked(_First, _Mid, _Last);
_RANGES _Reverse_unchecked(_Result.in1, _Result.in2);
auto _Result = _Reverse_until_sentinel_unchecked(_First, _Mid, _End);
_RANGES _Reverse_common(_Result.in1, _Result.in2);

if (_Result.in1 == _Mid) {
return {_STD move(_Result.in2), _STD move(_Last)};
return {_STD move(_Result.in2), _STD move(_End)};
} else {
return {_STD move(_Result.in1), _STD move(_Last)};
return {_STD move(_Result.in1), _STD move(_End)};
}
} else {
auto _Next = _Mid;
Expand Down

0 comments on commit 44d9cfa

Please sign in to comment.