diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-08 18:16:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-08 18:16:18 +0100 |
commit | c94f5b026010de00504b19015d0454ca19966da2 (patch) | |
tree | 4b83dcc6ea23de61391935f229d4b92445c34607 /cppu/source | |
parent | c2fe73d6a976e5a9131ff4aa04e7b5cea674ef19 (diff) |
loplugin:cstylecast
Change-Id: I3771f84ec94c62988c075dd26ee1de17200af705
Diffstat (limited to 'cppu/source')
-rw-r--r-- | cppu/source/uno/data.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 9a33a2a48a35..d0d22f6a9421 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -340,7 +340,7 @@ namespace cppu { #define MAX_ALIGNMENT_4 #endif -#define OFFSET_OF( s, m ) reinterpret_cast< size_t >((char *)&((s *)16)->m -16) +#define OFFSET_OF( s, m ) reinterpret_cast< size_t >(reinterpret_cast<char *>(&reinterpret_cast<s *>(16)->m) -16) #define BINTEST_VERIFYOFFSET( s, m, n ) \ if (OFFSET_OF(s, m) != static_cast<size_t>(n)) \ |