diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-11-30 23:54:03 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-11-30 23:54:03 +0000 |
commit | baac9c39fea1ba6a65b6368fc422c5a5392e6fea (patch) | |
tree | c91d33eea65a34f61a7acb6f56d9c078574d3ef8 | |
parent | 33165fe0d5c265c92f2a67fc2b437b567c24e294 (diff) | |
download | protobuf-baac9c39fea1ba6a65b6368fc422c5a5392e6fea.tar.gz protobuf-baac9c39fea1ba6a65b6368fc422c5a5392e6fea.tar.bz2 protobuf-baac9c39fea1ba6a65b6368fc422c5a5392e6fea.zip |
Add some explicit casts to eliminate some warnings as described in issue 83 comment 17.
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index 73a54ddd..1842edf6 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -992,12 +992,12 @@ inline int CodedOutputStream::VarintSize32SignExtended(int32 value) { } inline void CodedOutputStream::WriteString(const string& str) { - WriteRaw(str.data(), str.size()); + WriteRaw(str.data(), static_cast<int>(str.size())); } inline uint8* CodedOutputStream::WriteStringToArray( const string& str, uint8* target) { - return WriteRawToArray(str.data(), str.size(), target); + return WriteRawToArray(str.data(), static_cast<int>(str.size()), target); } inline int CodedOutputStream::ByteCount() const { |