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

Unified Diff: test/cctest/test-declarative-accessors.cc

Issue 12611004: fix windows build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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-declarative-accessors.cc
diff --git a/test/cctest/test-declarative-accessors.cc b/test/cctest/test-declarative-accessors.cc
index c624ccb6d6591ce158029bc78dffbf544b1f3b42..bf3fc442b475242bd0c76a42a8a0cbec2591d49f 100644
--- a/test/cctest/test-declarative-accessors.cc
+++ b/test/cctest/test-declarative-accessors.cc
@@ -203,16 +203,22 @@ static void TestBitmaskCompare(T bitmask,
v8::Handle<v8::DeclaredAccessorDescriptor> descriptor;
switch (sizeof(T)) {
case 1:
- descriptor =raw_descriptor->NewBitmaskCompare8(
- helper->isolate_, bitmask, compare_value);
+ descriptor = raw_descriptor->NewBitmaskCompare8(
+ helper->isolate_,
+ static_cast<uint8_t>(bitmask),
+ static_cast<uint8_t>(compare_value));
break;
case 2:
descriptor = raw_descriptor->NewBitmaskCompare16(
- helper->isolate_, bitmask, compare_value);
+ helper->isolate_,
+ static_cast<uint16_t>(bitmask),
+ static_cast<uint16_t>(compare_value));
break;
case 4:
descriptor = raw_descriptor->NewBitmaskCompare32(
- helper->isolate_, bitmask, compare_value);
+ helper->isolate_,
+ static_cast<uint32_t>(bitmask),
+ static_cast<uint32_t>(compare_value));
break;
default:
CHECK(false);
« 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