cppu/source/uno/data.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c94f5b026010de00504b19015d0454ca19966da2 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Mar 8 18:16:18 2016 +0100 loplugin:cstylecast Change-Id: I3771f84ec94c62988c075dd26ee1de17200af705 diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 9a33a2a..d0d22f6 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)) \ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits