From bc3fa1b9b57eb32326c4805194b68089396be195 Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Tue, 12 May 2015 13:11:50 +0800 Subject: [PATCH] Eliminated a spandsp warning frmo clang --- libs/spandsp/src/modem_connect_tones.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/spandsp/src/modem_connect_tones.c b/libs/spandsp/src/modem_connect_tones.c index 9c030ad0ed..98262a1cad 100644 --- a/libs/spandsp/src/modem_connect_tones.c +++ b/libs/spandsp/src/modem_connect_tones.c @@ -526,7 +526,7 @@ SPAN_DECLARE_NONSTD(int) modem_connect_tones_rx(modem_connect_tones_rx_state_t * filtered = 0.001599787f*(v1 - s->z15hz_2); s->z15hz_2 = s->z15hz_1; s->z15hz_1 = v1; - s->am_level += abs(lfastrintf(filtered)) - (s->am_level >> 8); + s->am_level += abs((int) lfastrintf(filtered)) - (s->am_level >> 8); //printf("%9.1f %10.4f %9d %9d\n", famp, filtered, s->am_level, s->channel_level); /* A Cauer notch at 2100Hz, spread just wide enough to meet our detection bandwidth criteria. */