summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/borrowed-ptr.cpp1
-rw-r--r--compat/borrowed-ptr.inl3
2 files changed, 0 insertions, 4 deletions
diff --git a/compat/borrowed-ptr.cpp b/compat/borrowed-ptr.cpp
index fc548726..da5c6a72 100644
--- a/compat/borrowed-ptr.cpp
+++ b/compat/borrowed-ptr.cpp
@@ -15,7 +15,6 @@ namespace floormat::detail_borrowed_ptr {
#endif
void control_block::decrement(control_block*& blk) noexcept
{
- fm_bptr_assert(blk);
auto c = --blk->_count;
fm_bptr_assert(c != (uint32_t)-1);
if (c == 0)
diff --git a/compat/borrowed-ptr.inl b/compat/borrowed-ptr.inl
index 40079377..c81f1ca0 100644
--- a/compat/borrowed-ptr.inl
+++ b/compat/borrowed-ptr.inl
@@ -143,10 +143,7 @@ bptr<T>::bptr(const bptr<Y>& other, std::nullptr_t) noexcept:
blk{other.blk}
{
if (blk)
- {
++blk->_count;
- fm_bptr_assert(blk->_count > 1);
- }
}
template<typename T>