Skip to content

Commit 5499a70

Browse files
committed
Revert "[libc++] Fix incorrect down cast in __tree::operator="
This reverts commit 3511044. I've accidentally pushed to the wrong branch.
1 parent 3511044 commit 5499a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ __tree<_Tp, _Compare, _Allocator>& __tree<_Tp, _Compare, _Allocator>::operator=(
13881388
if (__root())
13891389
__root()->__parent_ = __end_node();
13901390
}
1391-
__begin_node_ = static_cast<__end_node_pointer>(std::__tree_min(__end_node()->__left_));
1391+
__begin_node_ = static_cast<__end_node_pointer>(std::__tree_min(static_cast<__node_base_pointer>(__end_node())));
13921392
__size_ = __t.size();
13931393

13941394
return *this;

0 commit comments

Comments
 (0)