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:48 +0200
commite39b4ff653b5ea5651fc04e3a39bbcb8192211bf (patch)
tree3e1f4a35dcee26c68835568cf9d3407fa097eb8d
parentfce75237d50257fcf791e0b496d917abf819d330 (diff)
downloadktorrent-e39b4ff653b5ea5651fc04e3a39bbcb8192211bf.tar.gz
ktorrent-e39b4ff653b5ea5651fc04e3a39bbcb8192211bf.zip
Fix FTBFS due to narrowing conversion.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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: