From a92821ade6c7c0155aafd748158dc1c1253afa75 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Dec 2013 03:14:34 +0000 Subject: 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 --- matriseq.c | 2 +- zix/ring.c | 2 +- 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; } -- cgit v1.2.1