More safe-ty.
This commit is contained in:
parent
9df6874a55
commit
a8cd1be065
|
@ -423,7 +423,7 @@ final class PoolAllocator : Allocator {
|
||||||
}
|
}
|
||||||
|
|
||||||
@property size_t totalSize()
|
@property size_t totalSize()
|
||||||
{
|
@safe {
|
||||||
size_t amt = 0;
|
size_t amt = 0;
|
||||||
for (auto p = m_fullPools; p; p = p.next)
|
for (auto p = m_fullPools; p; p = p.next)
|
||||||
amt += p.data.length;
|
amt += p.data.length;
|
||||||
|
@ -433,7 +433,7 @@ final class PoolAllocator : Allocator {
|
||||||
}
|
}
|
||||||
|
|
||||||
@property size_t allocatedSize()
|
@property size_t allocatedSize()
|
||||||
{
|
@safe {
|
||||||
size_t amt = 0;
|
size_t amt = 0;
|
||||||
for (auto p = m_fullPools; p; p = p.next)
|
for (auto p = m_fullPools; p; p = p.next)
|
||||||
amt += p.data.length;
|
amt += p.data.length;
|
||||||
|
|
Loading…
Reference in a new issue