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;
        |                                 ^
This commit is contained in:
Aleksander Morgado
2019-11-20 15:51:38 +01:00
parent 9bc5d742dc
commit 3c19b48f8c

View File

@@ -755,7 +755,7 @@ qcdm_cmd_pilot_sets_result_get_pilot (QcdmResult *result,
*out_pn_offset = set->pn_offset; *out_pn_offset = set->pn_offset;
*out_ecio = set->ecio; *out_ecio = set->ecio;
/* EC/IO is in units of -0.5 dB per the specs */ /* 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; return TRUE;
} }