We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f835f8 commit d578536Copy full SHA for d578536
source/iopipe/refc.d
@@ -84,7 +84,7 @@ struct RefCounted(T)
84
{
85
if(_impl)
86
87
- assert(_impl._count >= 0, "Invalid count detected");
+ assert(_impl._count > 0, "Invalid count detected");
88
import core.atomic;
89
if(_impl._count.atomicOp!"-="(1) == 0)
90
0 commit comments