summaryrefslogtreecommitdiff
path: root/absl/strings/internal/ostringstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/strings/internal/ostringstream.cc')
-rw-r--r--absl/strings/internal/ostringstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/internal/ostringstream.cc b/absl/strings/internal/ostringstream.cc
index 05324c78..dc6cfe16 100644
--- a/absl/strings/internal/ostringstream.cc
+++ b/absl/strings/internal/ostringstream.cc
@@ -27,7 +27,7 @@ OStringStream::Buf::int_type OStringStream::overflow(int c) {
std::streamsize OStringStream::xsputn(const char* s, std::streamsize n) {
assert(s_);
- s_->append(s, n);
+ s_->append(s, static_cast<size_t>(n));
return n;
}