aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lv2_evbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lv2_evbuf.c b/src/lv2_evbuf.c
index aba32f3..2307c12 100644
--- a/src/lv2_evbuf.c
+++ b/src/lv2_evbuf.c
@@ -205,7 +205,7 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter,
*data = (uint8_t*)ev + sizeof(LV2_Event);
break;
case LV2_EVBUF_ATOM:
- aseq = (LV2_Atom_Sequence*)&iter.evbuf->buf.atom;
+ aseq = &iter.evbuf->buf.atom;
aev = (LV2_Atom_Event*)(
(char*)LV2_ATOM_CONTENTS(LV2_Atom_Sequence, aseq)
+ iter.offset);
@@ -252,7 +252,7 @@ lv2_evbuf_write(LV2_Evbuf_Iterator* iter,
iter->offset += size;
break;
case LV2_EVBUF_ATOM:
- aseq = (LV2_Atom_Sequence*)&iter->evbuf->buf.atom;
+ aseq = &iter->evbuf->buf.atom;
if (iter->evbuf->capacity - sizeof(LV2_Atom) - aseq->atom.size
< sizeof(LV2_Atom_Event) + size) {
return false;