summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-05-11 22:10:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-05-11 23:56:19 +0900
commitc1195c1959723859405ea300ff6401c644ab9355 (patch)
tree08c5d3845569acd8a967dd59e6842e2a31e13629
parent952e4337d4cbc6065e7de17901efb001a9ebe42e (diff)
downloadktorrent-r14.0.x.tar.gz
ktorrent-r14.0.x.zip
Fix FTBFS described at issue #2.r14.0.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 3ce1e1ccb8105968b6cb2a506a627f60f50d2148)
-rw-r--r--plugins/infowidget/chunkbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/infowidget/chunkbar.cpp b/plugins/infowidget/chunkbar.cpp
index 1cd45eb..794bf5a 100644
--- a/plugins/infowidget/chunkbar.cpp
+++ b/plugins/infowidget/chunkbar.cpp
@@ -207,7 +207,7 @@ namespace kt
if (rs.empty())
{
- Range r = {i,i,0};
+ Range r = {(int)i,(int)i,0};
rs.append(r);
}
else
@@ -219,7 +219,7 @@ namespace kt
}
else
{
- Range r = {i,i,0};
+ Range r = {(int)i,(int)i,0};
rs.append(r);
}
}
@@ -256,7 +256,7 @@ namespace kt
int fac = int(100*((double)num_dl / (jEnd - jStart)) + 0.5);
if (rs.empty())
{
- Range r = {i,i,fac};
+ Range r = {(int)i,(int)i,fac};
rs.append(r);
}
else
@@ -268,7 +268,7 @@ namespace kt
}
else
{
- Range r = {i,i,fac};
+ Range r = {(int)i,(int)i,fac};
rs.append(r);
}
}