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; |
} |