From a61f3aabc4fd4e2bfca6a6cdc8966f14d61aec43 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 8 Dec 2023 14:38:14 -0600 Subject: [PATCH] fix: mixed enumerated and non-enumerated warning --- libtransmission/torrent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.cc b/libtransmission/torrent.cc index cfebf55de..a4d183189 100644 --- a/libtransmission/torrent.cc +++ b/libtransmission/torrent.cc @@ -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(TR_ETA_UNKNOWN) : seed_ratio_bytes_left / eta_speed_byps; } if (eta_speed_byps < 1U)