1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-20 05:49:11 +00:00

fix: mixed enumerated and non-enumerated warning

This commit is contained in:
Charles Kerr 2023-12-08 14:38:14 -06:00
parent ecb5036074
commit a61f3aabc4

View file

@ -1362,7 +1362,7 @@ tr_stat tr_torrent::stats() const
if (seed_ratio_applies)
{
stats.eta = eta_speed_byps == 0U ? TR_ETA_UNKNOWN : seed_ratio_bytes_left / eta_speed_byps;
stats.eta = eta_speed_byps == 0U ? static_cast<time_t>(TR_ETA_UNKNOWN) : seed_ratio_bytes_left / eta_speed_byps;
}
if (eta_speed_byps < 1U)