From 12c9805eaba640e523ab0d7258d45a461f048bfe Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 1 Mar 2018 18:12:22 +0000 Subject: [PATCH] tmv: Add missing uses of tmv_dbl() Signed-off-by: Michael Brown --- tsproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsproc.c b/tsproc.c index 06c0184..b50c8e5 100644 --- a/tsproc.c +++ b/tsproc.c @@ -214,7 +214,7 @@ int tsproc_update_offset(struct tsproc *tsp, tmv_t *offset, double *weight) return 0; if (weighting(tsp) && tsp->filtered_delay > 0 && raw_delay > 0) { - *weight = (double)tsp->filtered_delay / raw_delay; + *weight = tmv_dbl(tsp->filtered_delay) / tmv_dbl(raw_delay); if (*weight > 1.0) *weight = 1.0; } else {