Skip to content

Commit 8e5ffb5

Browse files
committed
Memory allocator: fix unittest build
1 parent f6c5765 commit 8e5ffb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/memory/TScratchAllocatorTest.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace cppcore;
2828

2929
class TScratchAllocatorTest : public testing::Test {
3030
public:
31-
static constexpr size_t BufferSize = 1024u;
31+
const size_t BufferSize = 1024u;
3232
};
3333

3434
TEST_F(TScratchAllocatorTest, CreateTest) {
@@ -64,3 +64,4 @@ TEST_F(TScratchAllocatorTest, ClearTest) {
6464
EXPECT_EQ(myAllocator.capacity(), 0u);
6565
EXPECT_EQ(myAllocator.freeMem(), 0u);
6666
}
67+

0 commit comments

Comments
 (0)