aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/repeated_field.h
diff options
context:
space:
mode:
authorGravatar John Burke <jcburke@stanford.edu>2016-01-19 15:13:25 -0800
committerGravatar John Burke <jcburke@stanford.edu>2016-01-19 15:13:25 -0800
commit3937dedbff63965b1e7ad08b77503a3971d2ff2b (patch)
treee4bf184125f3edae9f4467b28f342bd46a54833b /src/google/protobuf/repeated_field.h
parent91427fe0751936cf9e4db925b2c47dd7a5c09d58 (diff)
Fix compiler warning from repeated_field.h
Diffstat (limited to 'src/google/protobuf/repeated_field.h')
-rw-r--r--src/google/protobuf/repeated_field.h2
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);
}
};