Fix compilation after r24639
authorjkummerow@chromium.org <jkummerow@chromium.org>
Wed, 15 Oct 2014 14:27:26 +0000 (14:27 +0000)
committerjkummerow@chromium.org <jkummerow@chromium.org>
Wed, 15 Oct 2014 14:27:26 +0000 (14:27 +0000)
TBR=yangguo@chromium.org

Review URL: https://codereview.chromium.org/661473002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24642 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/serialize.cc

index 4c9675e..b980940 100644 (file)
@@ -1918,7 +1918,7 @@ uint32_t Serializer::Allocate(int space, int size) {
   DCHECK(size > 0 && size < Page::kMaxRegularHeapObjectSize);
   uint32_t new_chunk_size = pending_chunk_[space] + size;
   uint32_t allocation;
-  if (new_chunk_size > Page::kMaxRegularHeapObjectSize) {
+  if (new_chunk_size > static_cast<uint32_t>(Page::kMaxRegularHeapObjectSize)) {
     // The new chunk size would not fit onto a single page. Complete the
     // current chunk and start a new one.
     completed_chunks_[space].Add(pending_chunk_[space]);