summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-17 03:14:34 +0000
committerDavid Robillard <d@drobilla.net>2013-12-17 03:14:34 +0000
commita92821ade6c7c0155aafd748158dc1c1253afa75 (patch)
tree639a690dcd3fa12540dba2903f9f054dff7e4026
parent383d679fc4a5f259d131b4297a22a3844c2ccd4a (diff)
downloadmatriseq.lv2-a92821ade6c7c0155aafd748158dc1c1253afa75.tar.gz
matriseq.lv2-a92821ade6c7c0155aafd748158dc1c1253afa75.tar.bz2
matriseq.lv2-a92821ade6c7c0155aafd748158dc1c1253afa75.zip
Fix more const issues.
Require latest LV2 svn for Ingen (fix #945). git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/matriseq@5174 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--matriseq.c2
-rw-r--r--zix/ring.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/matriseq.c b/matriseq.c
index 8894260..4290709 100644
--- a/matriseq.c
+++ b/matriseq.c
@@ -350,7 +350,7 @@ run(LV2_Handle instance, uint32_t n_frames)
while (!lv2_atom_sequence_is_end(&in->body, in->atom.size, ev) &&
ev->time.frames == t) {
if (ev->body.type == uris->atom_Blank) {
- const LV2_Atom_Object* obj = (LV2_Atom_Object*)&ev->body;
+ const LV2_Atom_Object* obj = (const LV2_Atom_Object*)&ev->body;
if (obj->body.otype == uris->time_Position) {
// Update transport position and speed
LV2_Atom *beat = NULL, *bpm = NULL, *speed = NULL;
diff --git a/zix/ring.c b/zix/ring.c
index 7ebbe67..b701497 100644
--- a/zix/ring.c
+++ b/zix/ring.c
@@ -216,7 +216,7 @@ zix_ring_write(ZixRing* ring, const void* src, uint32_t size)
} else {
const uint32_t this_size = ring->size - w;
memcpy(&ring->buf[w], src, this_size);
- memcpy(&ring->buf[0], (char*)src + this_size, size - this_size);
+ memcpy(&ring->buf[0], (const char*)src + this_size, size - this_size);
ZIX_WRITE_BARRIER();
ring->write_head = size - this_size;
}