From f06d150f863204c10d2d26419e70b84fea9ef7e9 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 31 Oct 2015 15:13:47 +0100 Subject: [PATCH] Add missing return --- libretroshare/src/util/smallobject.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/util/smallobject.cc b/libretroshare/src/util/smallobject.cc index e845dadf0..3d91e99f9 100644 --- a/libretroshare/src/util/smallobject.cc +++ b/libretroshare/src/util/smallobject.cc @@ -161,9 +161,11 @@ void FixedAllocator::deallocate(void *p) uint32_t FixedAllocator::currentSize() const { uint32_t res = 0 ; - + for(uint32_t i=0;i<_chunks.size();++i) - res += (_numBlocks - _chunks[i]->_blocksAvailable) * _blockSize ; + res += (_numBlocks - _chunks[i]->_blocksAvailable) * _blockSize ; + + return res ; } void FixedAllocator::printStatistics() const {