aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-08 00:58:55 +0000
committerDavid Robillard <d@drobilla.net>2011-01-08 00:58:55 +0000
commitd30c5821957c45e048d7e8fb9b2e02b05b8ac2d4 (patch)
treeb0c4163fbb565f0f9d62c3c74174744025d691dc /ext
parente3df093f4592a8b2f3da22674ec1f6e8916ef06b (diff)
downloadlv2-d30c5821957c45e048d7e8fb9b2e02b05b8ac2d4.tar.xz
Fix Blank/Resource property appending and iteration.
Diffstat (limited to 'ext')
-rw-r--r--ext/atom.lv2/atom-helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/atom.lv2/atom-helpers.h b/ext/atom.lv2/atom-helpers.h
index b470c01..6eac4b5 100644
--- a/ext/atom.lv2/atom-helpers.h
+++ b/ext/atom.lv2/atom-helpers.h
@@ -58,7 +58,7 @@ lv2_object_begin(LV2_Atom* obj)
static inline bool
lv2_object_iter_is_end(const LV2_Atom* object, LV2_Object_Iter iter)
{
- return (uint8_t*)iter >= (object->body + object->size);
+ return (uint8_t*)iter >= ((uint8_t*)object->body + object->size);
}
/** Return true iff @a l points to the same property as @a r */
@@ -124,7 +124,7 @@ lv2_atom_append_property(LV2_Atom* object,
prop->value.type = value_type;
prop->value.size = value_size;
memcpy(prop->value.body, value_body, value_size);
- object->size += sizeof(uint32_t) + sizeof(LV2_Atom_Property) + value_size;
+ object->size += sizeof(LV2_Atom_Property) + value_size;
return prop;
}