Skip to content

Commit be3ac37

Browse files
map.ops/find.pass.cpp
1 parent bed849d commit be3ac37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/include/__tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,10 +2281,10 @@ __tree<_Tp, _Compare, _Allocator>::__lower_bound(
22812281
const _Key& __v, __node_pointer __root, __end_node_pointer __result) const {
22822282
while (__root != nullptr) {
22832283
if (!value_comp()(__root->__value_, __v)) {
2284-
__result = static_cast<__end_node_pointer>(__root);
2285-
__root = static_cast<__node_pointer>(__root->__left_);
2284+
__result = std::__static_fancy_pointer_cast<__end_node_pointer>(__root);
2285+
__root = std::__static_fancy_pointer_cast<__node_pointer>(__root->__left_);
22862286
} else
2287-
__root = static_cast<__node_pointer>(__root->__right_);
2287+
__root = std::__static_fancy_pointer_cast<__node_pointer>(__root->__right_);
22882288
}
22892289
return const_iterator(__result);
22902290
}

0 commit comments

Comments
 (0)