Skip to content

Commit

Permalink
Merge pull request #38 from schveiguy/fix87
Browse files Browse the repository at this point in the history
Fix #87
  • Loading branch information
schveiguy authored Mar 8, 2023
2 parents 61141b6 + d578536 commit e59ad0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/iopipe/refc.d
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct RefCounted(T)
{
if(_impl)
{
assert(_impl._count >= 0, "Invalid count detected");
assert(_impl._count > 0, "Invalid count detected");
import core.atomic;
if(_impl._count.atomicOp!"-="(1) == 0)
{
Expand Down

0 comments on commit e59ad0d

Please sign in to comment.