From d30c5821957c45e048d7e8fb9b2e02b05b8ac2d4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 8 Jan 2011 00:58:55 +0000 Subject: Fix Blank/Resource property appending and iteration. --- ext/atom.lv2/atom-helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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; } -- cgit v1.2.1