Skip to content

Commit 5b4d621

Browse files
committed
synthio: explicitly cast away const to satisfy compiler
1 parent 167aa30 commit 5b4d621

File tree

1 file changed

+1
-1
lines changed
  • shared-bindings/synthio

1 file changed

+1
-1
lines changed

shared-bindings/synthio/LFO.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ STATIC mp_obj_t synthio_lfo_make_new(const mp_obj_type_t *type_in, size_t n_args
9191
synthio_lfo_obj_t *self = m_new_obj(synthio_lfo_obj_t);
9292
self->base.base.type = &synthio_lfo_type;
9393

94-
self->waveform_bufinfo = ((mp_buffer_info_t) {.buf = triangle, .len = MP_ARRAY_SIZE(triangle)});
94+
self->waveform_bufinfo = ((mp_buffer_info_t) {.buf = (void *)triangle, .len = MP_ARRAY_SIZE(triangle)});
9595
if (args[ARG_waveform].u_obj != mp_const_none) {
9696
synthio_synth_parse_waveform(&self->waveform_bufinfo, args[ARG_waveform].u_obj);
9797
}

0 commit comments

Comments
 (0)