Skip to content

Commit 98067a3

Browse files
committed
[libc] Outer size, not inner size
1 parent a440c3e commit 98067a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/__support/freestore_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TEST(LlvmLibcFreeStore, TooSmall) {
2828
ASSERT_TRUE(maybeBlock.has_value());
2929
// On platforms with high alignment the smallest legal block may be large
3030
// enough for a node.
31-
if (too_small->inner_size() >= sizeof(Block) + sizeof(FreeList::Node))
31+
if (too_small->outer_size() >= sizeof(Block) + sizeof(FreeList::Node))
3232
return;
3333
Block *remainder = *maybeBlock;
3434

0 commit comments

Comments
 (0)