From 64b74e69103640c054a116d57206cc0fb166e954 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Wed, 9 Jan 2013 16:34:45 +0000 Subject: [PATCH] Fix objectprint=on build. R=dcarney@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11827023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13348 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects-printer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects-printer.cc b/src/objects-printer.cc index c88de2193c..ce23298ed3 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(buffer), 0, length()); buffer[length()] = 0; return buffer; }