Commit 46090c01 authored by Jonathan Wilkes's avatar Jonathan Wilkes

workaround to use valgrind on arm ci runner

parent 53089532
......@@ -286,7 +286,10 @@ void kbuffer_init(t_kbuffer *x,short initialized)
x->loop_flag = 0;
x->fval = 0;
x->speed = 1.0 ;
x->memsize = x->ksrate * x->duration * sizeof(float);
/* Cast to double below to work around an unrecognized instruction
on arm when testing under valgrind. This shouldn't have any
side-effects and allows us to run valgrind in the CI. */
x->memsize = (double)x->ksrate * (double)x->duration * sizeof(float);
x->length = x->duration * x->ksrate;
x->data = (float *) calloc(x->memsize, sizeof(float));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment