Revision: 11872
Author: erikcorry
Date: Tue Jun 19 12:37:33 2012
Log: Add missing cast to make MSVC happier.
Review URL: http://codereview.chromium.org/10592003
http://code.google.com/p/v8/source/detail?r=11872
Modified:
/branches/bleeding_edge/src/isolate.cc
=======================================
--- /branches/bleeding_edge/src/isolate.cc Tue Jun 19 11:38:03 2012
+++ /branches/bleeding_edge/src/isolate.cc Tue Jun 19 12:37:33 2012
@@ -1608,7 +1608,7 @@
int capacity = serialize_partial_snapshot_cache_capacity();
if (length >= capacity) {
- int new_capacity = (capacity + 10) * 1.2;
+ int new_capacity = static_cast<int>((capacity + 10) * 1.2);
Object** new_array = new Object*[new_capacity];
for (int i = 0; i < length; i++) {
new_array[i] = serialize_partial_snapshot_cache()[i];
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev