diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-25 13:33:43 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-25 13:33:43 -0700 |
commit | ff6a439cd24e239abd97107ecedf12dca71e59a5 (patch) | |
tree | cf8c1306e46264f6a2273f6d837e215507090adf /src | |
parent | f221c78e6237e0a118ebe85c25e433fe16a7735d (diff) |
altos: Wrap ao_container_of value in parens
Keeps the cast from being separated from the value when used
in expressions.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_list.h b/src/core/ao_list.h index 23cf1841..8a6fa4d9 100644 --- a/src/core/ao_list.h +++ b/src/core/ao_list.h @@ -137,7 +137,7 @@ ao_list_is_empty(struct ao_list *head) * @return A pointer to the data struct containing the list head. */ #define ao_container_of(ptr, type, member) \ - (type *)((char *)(ptr) - offsetof(type, member)) + ((type *)((char *)(ptr) - offsetof(type, member))) /** * Alias of ao_container_of |