Revision: 12432 Author: [email protected] Date: Mon Sep 3 08:40:00 2012 Log: Fix windows compile errors introduced by r12430.
[email protected] BUG= Review URL: https://chromiumcodereview.appspot.com/10907049 http://code.google.com/p/v8/source/detail?r=12432 Modified: /branches/bleeding_edge/src/api.cc ======================================= --- /branches/bleeding_edge/src/api.cc Mon Sep 3 08:06:36 2012 +++ /branches/bleeding_edge/src/api.cc Mon Sep 3 08:40:00 2012 @@ -4943,15 +4943,17 @@ ENTER_V8(isolate); ASSERT((encoding & kStringEncodingMask) == LATIN1_ENCODING); CHECK(resource && resource->data()); - bool ascii_hint = (encoding & kAsciiHintMask); + int ascii_hint = (encoding & kAsciiHintMask); i::Handle<i::String> result; if (ascii_hint == ASCII_HINT || (ascii_hint != NOT_ASCII_HINT && - i::String::IsAscii(resource->data(), resource->length()))) { + i::String::IsAscii(resource->data(), + static_cast<int>(resource->length())))) { // Assert that the ascii hint is correct. ASSERT(ascii_hint != ASCII_HINT || - i::String::IsAscii(resource->data(), resource->length())); + i::String::IsAscii(resource->data(), + static_cast<int>(resource->length()))); result = NewExternalAsciiStringHandle(isolate, resource); isolate->heap()->external_string_table()->AddString(*result); } else { -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
