From a8cd1be0652c0caa9dc524f9d0f32b6820da7ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 5 Nov 2016 01:06:11 +0100 Subject: [PATCH] More safe-ty. --- source/vibe/internal/memory.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/internal/memory.d b/source/vibe/internal/memory.d index fe17176..66a11c2 100644 --- a/source/vibe/internal/memory.d +++ b/source/vibe/internal/memory.d @@ -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;