Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Unified Diff: test/cctest/test-api.cc

Issue 14392013: Win64 build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 4068a16e36d20cd265c0047046ac12ea6071a198..8fca65cedc55479ef4a97711727ad7b44bf4c700 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -2263,7 +2263,7 @@ THREADED_TEST(ArrayBuffer) {
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 @@ THREADED_TEST(ArrayBuffer) {
"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 @@ THREADED_TEST(ArrayBuffer) {
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);"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698