Commit 6794d17c authored by Feng Xiao's avatar Feng Xiao

Merge pull request #1155 from jcburke14/jb-intcast

Fix compiler warning from repeated_field.h
parents 91427fe0 3937dedb
......@@ -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);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment