aboutsummaryrefslogtreecommitdiff
path: root/libqcdm
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-11-20 15:51:38 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-30 11:59:14 +0100
commit3c19b48f8c4eeaf0c5bd66c737fbaabaab407f11 (patch)
tree7b223fdd14027011db2a6b470ffc42d43f8be17a /libqcdm
parent9bc5d742dc6d13f6363393d68328d21210e5fa48 (diff)
libqcdm,commands: fix warnings with -Wdouble-promotion
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; | ^
Diffstat (limited to 'libqcdm')
-rw-r--r--libqcdm/src/commands.c2
1 files changed, 1 insertions, 1 deletions
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;
}