aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2017-05-05 22:04:28 +0100
committerAlex Merry <alex.merry@kde.org>2017-05-05 22:04:28 +0100
commite82d81a8843c1aa99b3d33f5478ac3b8ad127982 (patch)
tree59b814d421f14bb1cc18985b88cdb1c83fbab0f7
parent3c369dc07cd0b5fa5b874e42af6191f518ee4bae (diff)
downloadprotobuf-e82d81a8843c1aa99b3d33f5478ac3b8ad127982.tar.gz
protobuf-e82d81a8843c1aa99b3d33f5478ac3b8ad127982.tar.bz2
protobuf-e82d81a8843c1aa99b3d33f5478ac3b8ad127982.zip
Fix offset type to match the tables it is used in
-rw-r--r--src/google/protobuf/generated_message_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h
index 44174466..299d95b6 100644
--- a/src/google/protobuf/generated_message_util.h
+++ b/src/google/protobuf/generated_message_util.h
@@ -100,7 +100,7 @@ namespace internal {
// choose 16 rather than some other number just in case the compiler would
// be confused by an unaligned pointer.
#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TYPE, FIELD) \
- static_cast<int>( \
+ static_cast<::google::protobuf::uint32>( \
reinterpret_cast<const char*>( \
&reinterpret_cast<const TYPE*>(16)->FIELD) - \
reinterpret_cast<const char*>(16))