diff options
author | John Burke <jcburke@stanford.edu> | 2016-01-19 15:13:25 -0800 |
---|---|---|
committer | John Burke <jcburke@stanford.edu> | 2016-01-19 15:13:25 -0800 |
commit | 3937dedbff63965b1e7ad08b77503a3971d2ff2b (patch) | |
tree | e4bf184125f3edae9f4467b28f342bd46a54833b /src | |
parent | 91427fe0751936cf9e4db925b2c47dd7a5c09d58 (diff) | |
download | protobuf-3937dedbff63965b1e7ad08b77503a3971d2ff2b.tar.gz protobuf-3937dedbff63965b1e7ad08b77503a3971d2ff2b.tar.bz2 protobuf-3937dedbff63965b1e7ad08b77503a3971d2ff2b.zip |
Fix compiler warning from repeated_field.h
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/repeated_field.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/repeated_field.h b/src/google/protobuf/repeated_field.h index 432236ce..61f3f558 100644 --- a/src/google/protobuf/repeated_field.h +++ b/src/google/protobuf/repeated_field.h @@ -692,7 +692,7 @@ class LIBPROTOBUF_EXPORT StringTypeHandlerBase { class StringTypeHandler : public StringTypeHandlerBase { public: static int SpaceUsed(const string& value) { - return sizeof(value) + StringSpaceUsedExcludingSelf(value); + return static_cast<int>(sizeof(value)) + StringSpaceUsedExcludingSelf(value); } }; |