summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-09-08 05:04:48 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-09-08 05:04:55 +0200
commit0c67d45324dc2aa9a38dae1a1c008f160369363f (patch)
treebe7ed142f28f66cc621b87a34377edf10b4e639d
parente4f129f5ba17abe6626e3e51c6bbadb9b16bdfe8 (diff)
downloadktorrent-0c67d45324dc2aa9a38dae1a1c008f160369363f.tar.gz
ktorrent-0c67d45324dc2aa9a38dae1a1c008f160369363f.zip
Fix FTBFS due to narrowing conversion.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e39b4ff653b5ea5651fc04e3a39bbcb8192211bf)
-rw-r--r--libktorrent/torrent/chunkmanager.cpp2
1 files changed, 1 insertions, 1 deletions
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: