summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}