aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/int128.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/stubs/int128.cc')
-rw-r--r--src/google/protobuf/stubs/int128.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/int128.cc b/src/google/protobuf/stubs/int128.cc
index 9f4fb824..d80c64f2 100644
--- a/src/google/protobuf/stubs/int128.cc
+++ b/src/google/protobuf/stubs/int128.cc
@@ -188,7 +188,8 @@ std::ostream& operator<<(std::ostream& o, const uint128& b) {
if ((flags & std::ios::adjustfield) == std::ios::left) {
rep.append(width - rep.size(), o.fill());
} else {
- rep.insert(0, width - rep.size(), o.fill());
+ rep.insert(static_cast<std::string::size_type>(0),
+ width - rep.size(), o.fill());
}
}