Reviewers: ulan,

Description:
Fix windows compile errors introduced by r12430.


[email protected]
BUG=


Please review this at https://chromiumcodereview.appspot.com/10907049/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/api.cc


Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index c8d5a9c19054aa02c5a73e24a10b58101c0f420f..c8a0f1e567a5f1d660810063ea675a193b49d88d 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4943,15 +4943,17 @@ Local<String> v8::String::NewExternal(ExternalLatin1StringResource* resource,
   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

Reply via email to