Skip to content

Commit

Permalink
Fix #87
Browse files Browse the repository at this point in the history
  • Loading branch information
schveiguy committed Mar 8, 2023
1 parent 9f835f8 commit d578536
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 d578536

Please sign in to comment.