From e74e1256d459894d81f0ad1e4a9c7a2b89f19078 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Jul 2014 15:57:48 +0200 Subject: util/Cast: fix indent --- src/util/Cast.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util') diff --git a/src/util/Cast.hxx b/src/util/Cast.hxx index 69172e6de..8fd1fe5e0 100644 --- a/src/util/Cast.hxx +++ b/src/util/Cast.hxx @@ -38,21 +38,21 @@ static constexpr void * OffsetPointer(void *p, ptrdiff_t offset) { - return (char *)p + offset; + return (char *)p + offset; } template static constexpr T * OffsetCast(U *p, ptrdiff_t offset) { - return reinterpret_cast(OffsetPointer(p, offset)); + return reinterpret_cast(OffsetPointer(p, offset)); } /** * Cast the given pointer to a struct member to its parent structure. */ #define ContainerCast(p, container, attribute) \ - OffsetCastattribute)>\ - ((p), -ptrdiff_t(offsetof(container, attribute))) + OffsetCastattribute)> \ + ((p), -ptrdiff_t(offsetof(container, attribute))) #endif -- cgit v1.2.3