From 3937dedbff63965b1e7ad08b77503a3971d2ff2b Mon Sep 17 00:00:00 2001 From: John Burke Date: Tue, 19 Jan 2016 15:13:25 -0800 Subject: Fix compiler warning from repeated_field.h --- src/google/protobuf/repeated_field.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google/protobuf/repeated_field.h') 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(sizeof(value)) + StringSpaceUsedExcludingSelf(value); } }; -- cgit v1.2.3