diff --git a/audio/hermite.c b/audio/hermite.c index e0fb48941c..722c7dd8bc 100644 --- a/audio/hermite.c +++ b/audio/hermite.c @@ -35,7 +35,7 @@ void resampler_preinit(ssnes_resampler_t *re, double omega, double *samples_offs *samples_offset = 2.0; for (int i = 0; i < 4; i++) { - re->chan_data[0][i] = cos((i - 2) * omega); + re->chan_data[0][i] = (float)cos((i - 2) * omega); re->chan_data[1][i] = re->chan_data[0][i]; }