summaryrefslogtreecommitdiff
path: root/shared/loki/SmallObj.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:14:37 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:14:37 +0200
commit8bf668665b107469086f16cb8ad23e47d479d2b4 (patch)
tree66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /shared/loki/SmallObj.cpp
parent3.21 (diff)
downloadFreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz
FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2
FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip
4.0
Diffstat (limited to 'shared/loki/SmallObj.cpp')
-rw-r--r--shared/loki/SmallObj.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/loki/SmallObj.cpp b/shared/loki/SmallObj.cpp
index 0d82c1bb..1c42374f 100644
--- a/shared/loki/SmallObj.cpp
+++ b/shared/loki/SmallObj.cpp
@@ -1012,7 +1012,7 @@ void FixedAllocator::DoDeallocate(void* p)
/// Calculates index into array where a FixedAllocator of numBytes is located.
inline std::size_t GetOffset( std::size_t numBytes, std::size_t alignment )
{
- const std::size_t alignExtra = alignment-1;
+ const std::size_t alignExtra = alignment - 1;
return ( numBytes + alignExtra ) / alignment;
}
@@ -1070,7 +1070,7 @@ SmallObjAllocator::SmallObjAllocator( std::size_t pageSize,
const std::size_t allocCount = GetOffset( maxObjectSize, objectAlignSize );
pool_ = new FixedAllocator[ allocCount ];
for ( std::size_t i = 0; i < allocCount; ++i )
- pool_[ i ].Initialize( ( i+1 ) * objectAlignSize, pageSize );
+ pool_[ i ].Initialize( ( i + 1 ) * objectAlignSize, pageSize );
}
// SmallObjAllocator::~SmallObjAllocator --------------------------------------
bgstack15