Skip to content

Commit 64b93db

Browse files
map.ops/count.pass.cpp
1 parent ce082a3 commit 64b93db

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
@@ -2231,9 +2231,9 @@ __tree<_Tp, _Compare, _Allocator>::__count_unique(const _Key& __k) const {
22312231
__node_pointer __rt = __root();
22322232
while (__rt != nullptr) {
22332233
if (value_comp()(__k, __rt->__value_)) {
2234-
__rt = static_cast<__node_pointer>(__rt->__left_);
2234+
__rt = std::__static_fancy_pointer_cast<__node_pointer>(__rt->__left_);
22352235
} else if (value_comp()(__rt->__value_, __k))
2236-
__rt = static_cast<__node_pointer>(__rt->__right_);
2236+
__rt = std::__static_fancy_pointer_cast<__node_pointer>(__rt->__right_);
22372237
else
22382238
return 1;
22392239
}

0 commit comments

Comments
 (0)