summaryrefslogtreecommitdiffhomepage
path: root/compat/borrowed-ptr.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-04 23:26:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:31:20 +0200
commit474794432e854ac3838eab152bb8ab25f3b4fad0 (patch)
tree31e562d0c2c3cd4f6a1695aef0a3e363da453101 /compat/borrowed-ptr.cpp
parent9f13bacf281aa07da04c9709b62fe0dead21b2c8 (diff)
a w
Diffstat (limited to 'compat/borrowed-ptr.cpp')
-rw-r--r--compat/borrowed-ptr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/borrowed-ptr.cpp b/compat/borrowed-ptr.cpp
index a73b869f..e66f31bc 100644
--- a/compat/borrowed-ptr.cpp
+++ b/compat/borrowed-ptr.cpp
@@ -23,7 +23,8 @@ void control_block::decrement(control_block*& blk) noexcept
blk->free_ptr();
delete blk;
}
- blk = nullptr;
+ //blk = nullptr;
+ blk = (control_block*)-1;
}
#ifdef __clang__