From 479843fc4dfaafdba49cf024115261c20abeb89d Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Wed, 25 Feb 2015 14:11:43 +0100 Subject: Fix LV2_ATOM_TUPLE_FOREACH macro. * using the LV2_ATOM_TUPLE_FOREACH macro throws a compile error * the 'LV2_Atom_Tuple' has no own size attribute * '(tuple)->size' should read: '(tuple)->atom.size' Signed-off-by: Hanspeter Portner --- lv2/lv2plug.in/ns/ext/atom/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lv2') diff --git a/lv2/lv2plug.in/ns/ext/atom/util.h b/lv2/lv2plug.in/ns/ext/atom/util.h index 52cdf93..7ca570f 100644 --- a/lv2/lv2plug.in/ns/ext/atom/util.h +++ b/lv2/lv2plug.in/ns/ext/atom/util.h @@ -214,14 +214,14 @@ lv2_atom_tuple_next(const LV2_Atom* i) This macro is used similarly to a for loop (which it expands to), e.g.: @code - LV2_ATOMO_TUPLE_FOREACH(tuple, elem) { + LV2_ATOM_TUPLE_FOREACH(tuple, elem) { // Do something with elem (an LV2_Atom*) here... } @endcode */ #define LV2_ATOM_TUPLE_FOREACH(tuple, iter) \ for (LV2_Atom* (iter) = lv2_atom_tuple_begin(tuple); \ - !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->size, (iter)); \ + !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->atom.size, (iter)); \ (iter) = lv2_atom_tuple_next(iter)) /** Like LV2_ATOM_TUPLE_FOREACH but for a headerless tuple body. */ -- cgit v1.2.1