Commit e74e1256 authored by Max Kellermann's avatar Max Kellermann

util/Cast: fix indent

parent 96abd70c
...@@ -52,7 +52,7 @@ OffsetCast(U *p, ptrdiff_t offset) ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment