aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar TheXception2009-01-15 01:29:30 +0000
committerGravatar TheXception2009-01-15 01:29:30 +0000
commit981347150ebe9db4b7151d4d98ac07d23dc4cc0d (patch)
treecfa39cc53ae08d4ce16f645c42d6b529d2d060b3 /src/modules
parentfixed filters (diff)
downloadKVIrc-981347150ebe9db4b7151d4d98ac07d23dc4cc0d.tar.gz
KVIrc-981347150ebe9db4b7151d4d98ac07d23dc4cc0d.tar.bz2
KVIrc-981347150ebe9db4b7151d4d98ac07d23dc4cc0d.zip
fix for #321 dcc resume
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2995 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/dcc/broker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/dcc/broker.cpp b/src/modules/dcc/broker.cpp
index 2b10ae2d7..91930d61a 100644
--- a/src/modules/dcc/broker.cpp
+++ b/src/modules/dcc/broker.cpp
@@ -647,7 +647,7 @@ void KviDccBroker::renameOverwriteResume(KviDccBox *box,KviDccDescriptor * dcc)
dcc->szLocalFileSize.setNum(fi.size());
bool bOk;
- int iRemoteSize = dcc->szFileSize.toInt(&bOk);
+ unsigned long iRemoteSize = dcc->szFileSize.toULong(&bOk);
if(!bOk)iRemoteSize = -1;
// FIXME: Files downloaded succesfully shouldn't be resumed
@@ -659,7 +659,7 @@ void KviDccBroker::renameOverwriteResume(KviDccBox *box,KviDccDescriptor * dcc)
bool bDisableResume = false;
if((iRemoteSize > -1) || // remote size is unknown
- (iRemoteSize > ((int)(fi.size())))) // or it is larger than the actual size on disk
+ (iRemoteSize > ((unsigned long)(fi.size())))) // or it is larger than the actual size on disk
{
tmp = __tr2qs_ctx( \
"The file '<b>%1</b>' already exists " \