Index: src/heap/spaces-inl.h |
diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h |
index 167e5fb70facf7e786b49cf1db01fbb30f7793c4..2cbc835d5e4e863e92abbb98050bac9170e4f2f5 100644 |
--- a/src/heap/spaces-inl.h |
+++ b/src/heap/spaces-inl.h |
@@ -212,7 +212,7 @@ Page* Page::ConvertNewToOld(Page* old_page) { |
DCHECK(old_page->InNewSpace()); |
OldSpace* old_space = old_page->heap()->old_space(); |
old_page->set_owner(old_space); |
- old_page->SetFlags(0, ~0); |
+ old_page->SetFlags(0, static_cast<uintptr_t>(~0)); |
old_space->AccountCommitted(old_page->size()); |
Page* new_page = Page::Initialize<kDoNotFreeMemory>( |
old_page->heap(), old_page, NOT_EXECUTABLE, old_space); |