Author: [EMAIL PROTECTED]
Date: Tue Dec  2 02:19:10 2008
New Revision: 894

Modified:
    branches/bleeding_edge/src/runtime.cc

Log:
Builds on Windows too.


Modified: branches/bleeding_edge/src/runtime.cc
==============================================================================
--- branches/bleeding_edge/src/runtime.cc       (original)
+++ branches/bleeding_edge/src/runtime.cc       Tue Dec  2 02:19:10 2008
@@ -1383,13 +1383,14 @@
        }
        Vector<const char> ascii_vector =
          sub->ToAsciiVector().SubVector(start_index, subject_length);
-      void* pos = memchr(ascii_vector.start(),
-                         static_cast<const char>(pchar),
-                         static_cast<size_t>(ascii_vector.length()));
+      const void* pos = memchr(ascii_vector.start(),
+                               static_cast<const char>(pchar),
+                               static_cast<size_t>(ascii_vector.length()));
        if (pos == NULL) {
          return -1;
        }
-      return reinterpret_cast<char*>(pos) - ascii_vector.start() +  
start_index;
+      return reinterpret_cast<const char*>(pos) - ascii_vector.start()
+          + start_index;
      }
      return SingleCharIndexOf(sub->ToUC16Vector(),
                               pat->Get(pat_shape, 0),

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to