diff --git a/spa/plugins/audioconvert/noise-ops.c b/spa/plugins/audioconvert/noise-ops.c index c7e54ea95..1c934792e 100644 --- a/spa/plugins/audioconvert/noise-ops.c +++ b/spa/plugins/audioconvert/noise-ops.c @@ -24,6 +24,7 @@ #include #include +#include #include #include @@ -71,7 +72,7 @@ int noise_init(struct noise *ns) return -ENOTSUP; for (i = 0; i < SPA_N_ELEMENTS(ns->tab); i++) - ns->tab[i] = (drand48() - 0.5) / (1 << ns->intensity); + ns->tab[i] = (drand48() - 0.5) / (UINT64_C(1) << ns->intensity); ns->free = impl_noise_free; ns->process = info->process;