Skip to content

Commit 0790081

Browse files
size.pass.cpp
1 parent c695518 commit 0790081

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ __tree<_Tp, _Compare, _Allocator>::__find_equal(__end_node_pointer& __parent, co
17081708
__nd_ptr = std::addressof(__nd->__left_);
17091709
__nd = std::__static_fancy_pointer_cast<__node_pointer>(__nd->__left_);
17101710
} else {
1711-
__parent = static_cast<__end_node_pointer>(__nd);
1711+
__parent = std::__static_fancy_pointer_cast<__end_node_pointer>(__nd);
17121712
return __parent->__left_;
17131713
}
17141714
} else if (value_comp()(__nd->__value_, __v)) {
@@ -2036,7 +2036,7 @@ __tree<_Tp, _Compare, _Allocator>::__remove_node_pointer(__node_pointer __ptr) _
20362036
if (__begin_node() == __ptr)
20372037
__begin_node() = __r.__ptr_;
20382038
--size();
2039-
std::__tree_remove(__end_node()->__left_, static_cast<__node_base_pointer>(__ptr));
2039+
std::__tree_remove(__end_node()->__left_, std::__static_fancy_pointer_cast<__node_base_pointer>(__ptr));
20402040
return __r;
20412041
}
20422042

0 commit comments

Comments
 (0)