util/Cast: fix indent

This commit is contained in:
Max Kellermann 2014-07-14 15:57:48 +02:00
parent 96abd70c13
commit e74e1256d4

View File

@ -52,7 +52,7 @@ OffsetCast(U *p, ptrdiff_t offset)
* Cast the given pointer to a struct member to its parent structure. * Cast the given pointer to a struct member to its parent structure.
*/ */
#define ContainerCast(p, container, attribute) \ #define ContainerCast(p, container, attribute) \
OffsetCast<container, decltype(((container*)nullptr)->attribute)>\ OffsetCast<container, decltype(((container*)nullptr)->attribute)> \
((p), -ptrdiff_t(offsetof(container, attribute))) ((p), -ptrdiff_t(offsetof(container, attribute)))
#endif #endif