Skip to content

Commit a440c3e

Browse files
committed
[libc] Correct previous malloc fix
1 parent 5db2867 commit a440c3e

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->outer_size() > sizeof(Block) + sizeof(FreeList::Node))
31+
if (too_small->inner_size() >= sizeof(Block) + sizeof(FreeList::Node))
3232
return;
3333
Block *remainder = *maybeBlock;
3434

0 commit comments

Comments
 (0)