fix compile warning

This commit is contained in:
Yancey 2014-01-10 17:56:35 +08:00
parent cb37ddf229
commit afdd2d1a46

View File

@ -62,8 +62,9 @@ TEST(ArenaImplTest, MemoryAllocatedBytes) {
TEST(ArenaImplTest, ApproximateMemoryUsageTest) { TEST(ArenaImplTest, ApproximateMemoryUsageTest) {
const size_t kBlockSize = 4096; const size_t kBlockSize = 4096;
const size_t kEntrySize = kBlockSize / 8; const size_t kEntrySize = kBlockSize / 8;
const size_t kZero = 0;
ArenaImpl arena(kBlockSize); ArenaImpl arena(kBlockSize);
ASSERT_EQ(0, arena.ApproximateMemoryUsage()); ASSERT_EQ(kZero, arena.ApproximateMemoryUsage());
auto num_blocks = kBlockSize / kEntrySize; auto num_blocks = kBlockSize / kEntrySize;