Fix the build on Mac.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 Oct 2011 13:47:14 +0000 (13:47 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 Oct 2011 13:47:14 +0000 (13:47 +0000)
Review URL: http://codereview.chromium.org/8354037

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

src/serialize.cc

index 072d9e347236750a425a9ce613a3cd5444c9988d..09f54c6f4da668591114e002b73413e496736e98 100644 (file)
@@ -1158,7 +1158,8 @@ void Serializer::VisitPointers(Object** start, Object** end) {
 
   for (Object** current = start; current < end; current++) {
     if (start == isolate->heap()->roots_array_start()) {
-      root_index_wave_front_ = Max(root_index_wave_front_, current - start);
+      root_index_wave_front_ =
+          Max(root_index_wave_front_, static_cast<intptr_t>(current - start));
     }
     if (reinterpret_cast<Address>(current) ==
         isolate->heap()->store_buffer()->TopAddress()) {