We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61141b6 + d578536 commit e59ad0dCopy full SHA for e59ad0d
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