aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-29 15:07:00 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 15:07:00 -0500
commit6c5417543633bdf0098513a23b05c17cfd94e239 (patch)
tree1c4b4d19940088b557ddd8320492ec7c8489db20 /src
parent4c6ac01736bad6a0a25802ce03c012d32cba5024 (diff)
downloadjalv-6c5417543633bdf0098513a23b05c17cfd94e239.tar.gz
jalv-6c5417543633bdf0098513a23b05c17cfd94e239.tar.bz2
jalv-6c5417543633bdf0098513a23b05c17cfd94e239.zip
Remove redundant casts
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;