Skip to content

Commit 3683469

Browse files
committed
Fix misplaced parens
1 parent 60bf66b commit 3683469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/optional

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ public:
842842
return std::__make_bounded_iter(
843843
std::__wrap_iter<pointer>(std::addressof(this->__get())),
844844
std::__wrap_iter<pointer>(std::addressof(this->__get())),
845-
std::__wrap_iter<pointer>(std::addressof(this->__get()) + (this->has_value()) ? 1 : 0));
845+
std::__wrap_iter<pointer>(std::addressof(this->__get()) + (this->has_value() ? 1 : 0)));
846846
# else
847847
return iterator(std::addressof(this->__get()));
848848
# endif
@@ -853,7 +853,7 @@ public:
853853
return std::__make_bounded_iter(
854854
std::__wrap_iter<const_pointer>(std::addressof(this->__get())),
855855
std::__wrap_iter<const_pointer>(std::addressof(this->__get())),
856-
std::__wrap_iter<const_pointer>(std::addressof(this->__get()) + (this->has_value()) ? 1 : 0));
856+
std::__wrap_iter<const_pointer>(std::addressof(this->__get()) + (this->has_value() ? 1 : 0)));
857857
# else
858858
return const_iterator(std::addressof(this->__get()));
859859
# endif

0 commit comments

Comments
 (0)