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

Unified Diff: src/log.cc

Issue 11818025: Continues Latin-1 support. All tests pass with ENABLE_LATIN_1 flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM fix 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
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index d30ef5a133d446aaf030536ce4b13456666e4152..efbb8f7f57f7150efda8615b54f9cdf2922b9692 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -384,7 +384,10 @@ class Logger::NameBuffer {
if (str == NULL) return;
if (str->HasOnlyAsciiChars()) {
int utf8_length = Min(str->length(), kUtf8BufferSize - utf8_pos_);
- String::WriteToFlat(str, utf8_buffer_ + utf8_pos_, 0, utf8_length);
+ String::WriteToFlat(str,
+ reinterpret_cast<uint8_t*>(utf8_buffer_ + utf8_pos_),
+ 0,
+ utf8_length);
utf8_pos_ += utf8_length;
return;
}

Powered by Google App Engine
This is Rietveld 408576698