diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-20 15:53:35 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | 06567283b1687f0628ee5464fe04c4550d4788ad (patch) | |
tree | aa674596c952988bcbef3c1e99f24c813a93363c /libqcdm | |
parent | 3c19b48f8c4eeaf0c5bd66c737fbaabaab407f11 (diff) |
libqcdm,logs: fix warnings with -Wdouble-promotion
logs.c: In function ‘qcdm_log_item_evdo_pilot_sets_v2_get_pilot’:
logs.c:179:94: warning: implicit conversion from ‘float’ to ‘double’ to match other operand of binary expression [-Wdouble-promotion]
179 | *out_rssi_dbm = (int32_t) (-110.0 + ((float) MAX (le16toh (pilot->pilot_energy) - 50, 0) / 14.0));
|
Diffstat (limited to 'libqcdm')
-rw-r--r-- | libqcdm/src/logs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqcdm/src/logs.c b/libqcdm/src/logs.c index b024b966..91152c42 100644 --- a/libqcdm/src/logs.c +++ b/libqcdm/src/logs.c @@ -176,7 +176,7 @@ qcdm_log_item_evdo_pilot_sets_v2_get_pilot (QcdmResult *result, pilot = (DMLogItemEvdoPilotSetsV2Pilot *) &array[num * sizeof (DMLogItemEvdoPilotSetsV2Pilot)]; *out_pilot_pn = le16toh (pilot->pilot_pn); *out_pilot_energy = le16toh (pilot->pilot_energy); - *out_rssi_dbm = (int32_t) (-110.0 + ((float) MAX (le16toh (pilot->pilot_energy) - 50, 0) / 14.0)); + *out_rssi_dbm = (int32_t) (-110.0 + (MAX (le16toh (pilot->pilot_energy) - 50, 0) / 14.0)); return TRUE; } |