Skip to content

Commit

Permalink
[libc] Correct previous malloc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Jan 17, 2025
1 parent 5db2867 commit a440c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/test/src/__support/freestore_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TEST(LlvmLibcFreeStore, TooSmall) {
ASSERT_TRUE(maybeBlock.has_value());
// On platforms with high alignment the smallest legal block may be large
// enough for a node.
if (too_small->outer_size() > sizeof(Block) + sizeof(FreeList::Node))
if (too_small->inner_size() >= sizeof(Block) + sizeof(FreeList::Node))
return;
Block *remainder = *maybeBlock;

Expand Down

0 comments on commit a440c3e

Please sign in to comment.