diff options
author | Bo Yang <teboring@google.com> | 2015-09-15 18:25:02 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2015-10-04 13:22:54 -0700 |
commit | 7c14dc837b2fcd61ed244ced90debeb4b42d1119 (patch) | |
tree | ebaea9d0a20b315f4f372136200494d4aff3936c /src/google/protobuf/stubs/int128.cc | |
parent | fbabf987e671aa37d11e1163e0175f99b32df5fe (diff) | |
download | protobuf-7c14dc837b2fcd61ed244ced90debeb4b42d1119.tar.gz protobuf-7c14dc837b2fcd61ed244ced90debeb4b42d1119.tar.bz2 protobuf-7c14dc837b2fcd61ed244ced90debeb4b42d1119.zip |
Down-integrate internal bug fixing changes.
Diffstat (limited to 'src/google/protobuf/stubs/int128.cc')
-rw-r--r-- | src/google/protobuf/stubs/int128.cc | 3 |
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()); } } |