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() { |