Commit dc46ceaa authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

a few more workarounds for an unknown instruction in valgrind

parent 60e0e72b
......@@ -1004,7 +1004,7 @@ static void oggamp_tick(t_oggamp *x)
static void *oggamp_new(t_floatarg fdographics, t_floatarg fnchannels, t_floatarg fbufsize)
{
t_oggamp *x;
int nchannels = fnchannels, bufsize = fbufsize * 1024, i;
int nchannels = fnchannels, bufsize = ((double)fbufsize) * 1024, i;
float *buf;
if (nchannels < 1)
......
......@@ -998,7 +998,11 @@ static void oggcast_tick_pages(t_oggcast *x)
static void *oggcast_new(t_floatarg fnchannels, t_floatarg fbufsize)
{
t_oggcast *x;
int nchannels = fnchannels, bufsize = fbufsize * 1024, i;
/* The cast to double below is a workaround for an unrecognized instruction
when running the arm CI runner under valgrind. Fortunately there are
only a handful of these in the entire codebase. Once this gets fixed
upstream in Valgrind these casts can be removed. */
int nchannels = fnchannels, bufsize = ((double)fbufsize) * 1024, i;
float *buf;
if (nchannels < 1)
......
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