Skip to content

Commit d578536

Browse files
committed
Fix #87
1 parent 9f835f8 commit d578536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/iopipe/refc.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct RefCounted(T)
8484
{
8585
if(_impl)
8686
{
87-
assert(_impl._count >= 0, "Invalid count detected");
87+
assert(_impl._count > 0, "Invalid count detected");
8888
import core.atomic;
8989
if(_impl._count.atomicOp!"-="(1) == 0)
9090
{

0 commit comments

Comments
 (0)