diff options
-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; } |