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