From 698d99776edae1d98201894c878f6e2c87d610ba Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Jan 2013 04:26:49 +0000 Subject: Fix lv2_atom_sequence_end(). --- lv2/lv2plug.in/ns/ext/atom/lv2-atom.doap.ttl | 8 ++++++++ lv2/lv2plug.in/ns/ext/atom/manifest.ttl | 2 +- lv2/lv2plug.in/ns/ext/atom/util.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lv2/lv2plug.in/ns/ext/atom/lv2-atom.doap.ttl b/lv2/lv2plug.in/ns/ext/atom/lv2-atom.doap.ttl index 4583701..dce66ba 100644 --- a/lv2/lv2plug.in/ns/ext/atom/lv2-atom.doap.ttl +++ b/lv2/lv2plug.in/ns/ext/atom/lv2-atom.doap.ttl @@ -12,6 +12,14 @@ doap:created "2007-00-00" ; doap:developer ; doap:release [ + doap:revision "1.3" ; + doap:created "2013-01-16" ; + dcs:changeset [ + dcs:item [ + rdfs:label "Fix lv2_atom_sequence_end()." + ] + ] + ] , [ doap:revision "1.2" ; doap:created "2012-10-14" ; doap:file-release ; diff --git a/lv2/lv2plug.in/ns/ext/atom/manifest.ttl b/lv2/lv2plug.in/ns/ext/atom/manifest.ttl index 6a10826..f6541c4 100644 --- a/lv2/lv2plug.in/ns/ext/atom/manifest.ttl +++ b/lv2/lv2plug.in/ns/ext/atom/manifest.ttl @@ -4,5 +4,5 @@ a lv2:Specification ; lv2:minorVersion 1 ; - lv2:microVersion 2 ; + lv2:microVersion 3 ; rdfs:seeAlso . diff --git a/lv2/lv2plug.in/ns/ext/atom/util.h b/lv2/lv2plug.in/ns/ext/atom/util.h index ac5eb2f..d247ad8 100644 --- a/lv2/lv2plug.in/ns/ext/atom/util.h +++ b/lv2/lv2plug.in/ns/ext/atom/util.h @@ -83,7 +83,7 @@ lv2_atom_sequence_begin(const LV2_Atom_Sequence_Body* body) static inline LV2_Atom_Event* lv2_atom_sequence_end(const LV2_Atom_Sequence_Body* body, uint32_t size) { - return (LV2_Atom_Event*)(body + lv2_atom_pad_size(size)); + return (LV2_Atom_Event*)((uint8_t*)body + lv2_atom_pad_size(size)); } /** Return true iff @p i has reached the end of @p body. */ -- cgit v1.2.1