X-Git-Url: https://git.llucax.com/software/dgc/naive.git/blobdiff_plain/346f04b3e1026ded5af3ac95a483b2c3d05a6d60..HEAD:/gc/cell.d?ds=sidebyside diff --git a/gc/cell.d b/gc/cell.d index b8261de..cd8fae1 100644 --- a/gc/cell.d +++ b/gc/cell.d @@ -182,7 +182,7 @@ private: auto N = 10; auto size = N * size_t.sizeof; auto cell = Cell.alloc(size, BlkAttr.FINALIZE | BlkAttr.NO_SCAN); - assert (cell); + assert (cell !is null); assert (cell.ptr is cell + 1); for (int i = 0; i < N; ++i) { auto ptr = cast(size_t*) cell.ptr + i;