Skip to content

Commit e59ad0d

Browse files
authored
Merge pull request #38 from schveiguy/fix87
Fix #87
2 parents 61141b6 + d578536 commit e59ad0d

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)