Revision: 14440
Author: [email protected]
Date: Thu Apr 25 05:34:45 2013
Log: Win64 build
[email protected],[email protected]
Review URL: https://codereview.chromium.org/14392013
http://code.google.com/p/v8/source/detail?r=14440
Modified:
/branches/bleeding_edge/test/cctest/test-api.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc Thu Apr 25 05:02:23 2013
+++ /branches/bleeding_edge/test/cctest/test-api.cc Thu Apr 25 05:34:45 2013
@@ -2263,7 +2263,7 @@
Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(1024);
HEAP->CollectAllGarbage(i::Heap::kNoGCFlags);
- CHECK_EQ(1024, ab->ByteLength());
+ CHECK_EQ(1024, static_cast<int>(ab->ByteLength()));
uint8_t* data = static_cast<uint8_t*>(ab->Data());
ASSERT(data != NULL);
env->Global()->Set(v8_str("ab"), ab);
@@ -2288,7 +2288,7 @@
"u8_a[0] = 0xAA;"
"u8_a[1] = 0xFF; u8_a.buffer");
Local<v8::ArrayBuffer> ab1 = v8::ArrayBuffer::Cast(*result);
- CHECK_EQ(2, ab1->ByteLength());
+ CHECK_EQ(2, static_cast<int>(ab1->ByteLength()));
uint8_t* ab1_data = static_cast<uint8_t*>(ab1->Data());
CHECK_EQ(0xAA, ab1_data[0]);
CHECK_EQ(0xFF, ab1_data[1]);
@@ -2300,7 +2300,7 @@
uint8_t* my_data = new uint8_t[100];
memset(my_data, 0, 100);
Local<v8::ArrayBuffer> ab3 = v8::ArrayBuffer::New(my_data, 100);
- CHECK_EQ(100, ab3->ByteLength());
+ CHECK_EQ(100, static_cast<int>(ab3->ByteLength()));
CHECK_EQ(my_data, ab3->Data());
env->Global()->Set(v8_str("ab3"), ab3);
result = CompileRun("var u8_b = new __Uint8Array(ab3);"
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.