From c94f5b026010de00504b19015d0454ca19966da2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 8 Mar 2016 18:16:18 +0100 Subject: loplugin:cstylecast Change-Id: I3771f84ec94c62988c075dd26ee1de17200af705 --- cppu/source/uno/data.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppu/source') 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(&reinterpret_cast(16)->m) -16) #define BINTEST_VERIFYOFFSET( s, m, n ) \ if (OFFSET_OF(s, m) != static_cast(n)) \ -- cgit