Reviewers: dcarney_chromium.org,

Description:
Fix objectprint=on build.


[email protected]
BUG=


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

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

Affected files:
  M src/objects-printer.cc


Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index c88de2193c8bc8bb3ed38863a831ce7023cf446a..ce23298ed34fa062e969c8519b7fa6bbe3aec6f4 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -703,7 +703,7 @@ char* String::ToAsciiArray() {
   static char* buffer = NULL;
   if (buffer != NULL) free(buffer);
   buffer = new char[length()+1];
-  WriteToFlat(this, buffer, 0, length());
+  WriteToFlat(this, reinterpret_cast<uint8_t*>(buffer), 0, length());
   buffer[length()] = 0;
   return buffer;
 }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to