diff options
author | David Robillard <d@drobilla.net> | 2013-12-17 03:14:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-17 03:14:34 +0000 |
commit | a92821ade6c7c0155aafd748158dc1c1253afa75 (patch) | |
tree | 639a690dcd3fa12540dba2903f9f054dff7e4026 | |
parent | 383d679fc4a5f259d131b4297a22a3844c2ccd4a (diff) | |
download | matriseq.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.c | 2 | ||||
-rw-r--r-- | zix/ring.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; @@ -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; } |