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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user