More safe-ty.

This commit is contained in:
Sönke Ludwig 2016-11-05 01:06:11 +01:00
parent 9df6874a55
commit a8cd1be065

View file

@ -423,7 +423,7 @@ final class PoolAllocator : Allocator {
}
@property size_t totalSize()
{
@safe {
size_t amt = 0;
for (auto p = m_fullPools; p; p = p.next)
amt += p.data.length;
@ -433,7 +433,7 @@ final class PoolAllocator : Allocator {
}
@property size_t allocatedSize()
{
@safe {
size_t amt = 0;
for (auto p = m_fullPools; p; p = p.next)
amt += p.data.length;