Revision: 7127
Author: [email protected]
Date: Thu Mar 10 04:58:57 2011
Log: Fix x64 build after r7125
http://code.google.com/p/v8/source/detail?r=7127

Modified:
 /branches/bleeding_edge/src/profile-generator.cc

=======================================
--- /branches/bleeding_edge/src/profile-generator.cc Thu Mar 10 04:22:59 2011 +++ /branches/bleeding_edge/src/profile-generator.cc Thu Mar 10 04:58:57 2011
@@ -105,7 +105,7 @@


 const char* StringsStorage::GetCopy(const char* src) {
-  int len = strlen(src);
+  int len = static_cast<int>(strlen(src));
   Vector<char> dst = Vector<char>::New(len + 1);
   OS::StrNCpy(dst, src, len);
   dst[len] = '\0';
@@ -1510,7 +1510,7 @@
 uint64_t HeapObjectsMap::GenerateId(v8::RetainedObjectInfo* info) {
   uint64_t id = static_cast<uint64_t>(info->GetHash());
   const char* label = info->GetLabel();
-  id ^= HashSequentialString(label, strlen(label));
+  id ^= HashSequentialString(label, static_cast<int>(strlen(label)));
   intptr_t element_count = info->GetElementCount();
   if (element_count != -1)
     id ^= ComputeIntegerHash(static_cast<uint32_t>(element_count));

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to