diff --git a/sdlib/d/gc/tcache.d b/sdlib/d/gc/tcache.d index 680617bfa..63bef9325 100644 --- a/sdlib/d/gc/tcache.d +++ b/sdlib/d/gc/tcache.d @@ -198,8 +198,7 @@ public: } // There must be sufficient free space to extend into: - auto capacity = pd.extent.size - startIndex; - if (capacity < slice.length + length) { + if (pd.extent.size - stopIndex < length) { return false; }