diff options
Diffstat (limited to 'third_party/re2/util/logging.h')
-rw-r--r-- | third_party/re2/util/logging.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/third_party/re2/util/logging.h b/third_party/re2/util/logging.h index 4478f9b21..d0a2d87 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() { |