From e39b4ff653b5ea5651fc04e3a39bbcb8192211bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Sep 2020 05:04:48 +0200 Subject: [PATCH] Fix FTBFS due to narrowing conversion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- libktorrent/torrent/chunkmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libktorrent/torrent/chunkmanager.cpp b/libktorrent/torrent/chunkmanager.cpp index 1fa4607..67359ba 100644 --- a/libktorrent/torrent/chunkmanager.cpp +++ b/libktorrent/torrent/chunkmanager.cpp @@ -782,7 +782,7 @@ namespace bt if (!tf.isNull()) { // numbers are to be compatible with old chunk info files - switch(buf[i+1]) + switch((Int32)buf[i+1]) { case FIRST_PRIORITY: case 3: