From 3c19b48f8c4eeaf0c5bd66c737fbaabaab407f11 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 20 Nov 2019 15:51:38 +0100 Subject: libqcdm,commands: fix warnings with -Wdouble-promotion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commands.c: In function ‘qcdm_cmd_pilot_sets_result_get_pilot’: commands.c:756:33: warning: implicit conversion from ‘float’ to ‘double’ to match other operand of binary expression [-Wdouble-promotion] 756 | *out_db = (float) set->ecio * -0.5; | ^ --- libqcdm/src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqcdm/src/commands.c') diff --git a/libqcdm/src/commands.c b/libqcdm/src/commands.c index 54f5883f..c05504c7 100644 --- a/libqcdm/src/commands.c +++ b/libqcdm/src/commands.c @@ -755,7 +755,7 @@ qcdm_cmd_pilot_sets_result_get_pilot (QcdmResult *result, *out_pn_offset = set->pn_offset; *out_ecio = set->ecio; /* EC/IO is in units of -0.5 dB per the specs */ - *out_db = (float) set->ecio * -0.5; + *out_db = (float) (set->ecio * -0.5); return TRUE; } -- cgit v1.2.3-70-g09d2