Fix compiler warning from repeated_field.h

pull/1155/head
John Burke 9 years ago
parent 91427fe075
commit 3937dedbff
  1. 2
      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);
}
};

Loading…
Cancel
Save