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

Unified Diff: third_party/re2/util/logging.h

Issue 12033058: Updated to most recent version RE2 and remove upstreamed patches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « third_party/re2/testinstall.cc ('k') | third_party/re2/util/util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/util/logging.h
diff --git a/third_party/re2/util/logging.h b/third_party/re2/util/logging.h
index 4478f9b219b44eb4d74ed0d3acbacc9b3caa5eec..d0a2d875b6e02e4ecfec5ad690e467ced67116f3 100644
--- a/third_party/re2/util/logging.h
+++ b/third_party/re2/util/logging.h
@@ -59,11 +59,8 @@ class LogMessage {
void Flush() {
stream() << "\n";
string s = str_.str();
-#ifdef WIN32
- write(2, s.data(), static_cast<unsigned int>(s.size()));
-#else
- if(write(2, s.data(), s.size()) < 0) {} // shut up gcc
-#endif
+ int n = (int)s.size(); // shut up msvc
+ if(write(2, s.data(), n) < 0) {} // shut up gcc
flushed_ = true;
}
~LogMessage() {
« no previous file with comments | « third_party/re2/testinstall.cc ('k') | third_party/re2/util/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698