Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: src/objects-printer.cc

Issue 11827023: Fix objectprint=on build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698