X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/d8944d1a3011a7b9b2ffcebf41fdb5d6d3b03467..3f609656ee57bc578da59dc7fb4d27cdaea2ad18:/rt/gc/cdgc/bits.d?ds=inline diff --git a/rt/gc/cdgc/bits.d b/rt/gc/cdgc/bits.d index 3dd8f34..17b71f3 100644 --- a/rt/gc/cdgc/bits.d +++ b/rt/gc/cdgc/bits.d @@ -83,9 +83,8 @@ struct GCBits invariant { if (data) - { - assert(nwords * data[0].sizeof * 8 >= nbits); - } + assert (nwords == + ((nbits + (BITS_PER_WORD - 1)) >> BITS_SHIFT)); } void alloc(size_t nbits, os.Vis vis = os.Vis.PRIV)