Commit 8120dadb authored by dcarney@chromium.org's avatar dcarney@chromium.org

fix windows build

R=jkummerow@chromium.org
BUG=

Review URL: https://codereview.chromium.org/12611004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13858 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 08e3c2ec
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment