diff options
author | Alex Merry <alex.merry@kde.org> | 2017-05-05 22:04:28 +0100 |
---|---|---|
committer | Alex Merry <alex.merry@kde.org> | 2017-05-05 22:04:28 +0100 |
commit | e82d81a8843c1aa99b3d33f5478ac3b8ad127982 (patch) | |
tree | 59b814d421f14bb1cc18985b88cdb1c83fbab0f7 /src | |
parent | 3c369dc07cd0b5fa5b874e42af6191f518ee4bae (diff) |
Fix offset type to match the tables it is used in
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/generated_message_util.h | 2 |
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)) |