Commit a0dfda88 authored by Anton Bikineev's avatar Anton Bikineev Committed by Commit Bot

cppgc: Fix gcc warning in sweeper-unittest.cc

Bug: v8:10724
Change-Id: I3f8c316818d4ec048143dc731b11808652612925
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2324248Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69118}
parent 7d0fcda3
......@@ -199,8 +199,8 @@ TEST_F(SweeperTest, CoalesceFreeListEntries) {
const BasePage* page = BasePage::FromPayload(object2);
const FreeList& freelist = NormalPageSpace::From(page->space())->free_list();
const FreeList::Block coalesced_block = {object2_start,
object3_end - object2_start};
const FreeList::Block coalesced_block = {
object2_start, static_cast<size_t>(object3_end - object2_start)};
EXPECT_EQ(0u, g_destructor_callcount);
EXPECT_FALSE(freelist.Contains(coalesced_block));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment