Revision: 11699
Author:   [email protected]
Date:     Fri Jun  1 05:10:19 2012
Log:      Silence Windows warning.

[email protected]
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10449108
http://code.google.com/p/v8/source/detail?r=11699

Modified:
 /branches/bleeding_edge/src/d8.cc

=======================================
--- /branches/bleeding_edge/src/d8.cc   Fri Jun  1 04:46:05 2012
+++ /branches/bleeding_edge/src/d8.cc   Fri Jun  1 05:10:19 2012
@@ -443,8 +443,9 @@

void Shell::ExternalArrayWeakCallback(Persistent<Value> object, void* data) {
   HandleScope scope;
-  Local<Value> length = object->ToObject()->Get(String::New("byteLength"));
-  V8::AdjustAmountOfExternalAllocatedMemory(-length->Uint32Value());
+  int32_t length =
+      object->ToObject()->Get(String::New("byteLength"))->Uint32Value();
+  V8::AdjustAmountOfExternalAllocatedMemory(-length);
   delete[] static_cast<uint8_t*>(data);
   object.Dispose();
 }

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

Reply via email to