From 0c16760ed8a6a824d50d1f22a0c08cea0ab5640a Mon Sep 17 00:00:00 2001 From: aunsane Date: Mon, 8 May 2017 22:52:08 +0300 Subject: CloudFile: fix build for VS2010 --- plugins/CloudFile/src/Services/dropbox_service.cpp | 2 +- plugins/CloudFile/src/Services/google_service.cpp | 2 +- plugins/CloudFile/src/Services/yandex_service.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CloudFile/src/Services') diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp index fdd904e5e3..ef70949d55 100644 --- a/plugins/CloudFile/src/Services/dropbox_service.cpp +++ b/plugins/CloudFile/src/Services/dropbox_service.cpp @@ -242,7 +242,7 @@ UINT CDropboxService::Upload(FileTransferParam *ftp) ftp->Progress(size); size_t offset = size; - size_t chunkCount = ceil(fileSize / chunkSize) - 2; + double chunkCount = ceil(double(fileSize) / chunkSize) - 2; while (chunkCount--) { ftp->CheckCurrentFile(); diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp index ac1d71b0f1..92e704bbac 100644 --- a/plugins/CloudFile/src/Services/google_service.cpp +++ b/plugins/CloudFile/src/Services/google_service.cpp @@ -263,7 +263,7 @@ UINT CGDriveService::Upload(FileTransferParam *ftp) CreateUploadSession(uploadUri, folderId, fileName); uint64_t offset = 0; - size_t chunkCount = ceil(fileSize / chunkSize); + double chunkCount = ceil(double(fileSize) / chunkSize); while (chunkCount--) { ftp->CheckCurrentFile(); diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp index bce62324a1..167d9cc3f8 100644 --- a/plugins/CloudFile/src/Services/yandex_service.cpp +++ b/plugins/CloudFile/src/Services/yandex_service.cpp @@ -249,7 +249,7 @@ UINT CYandexService::Upload(FileTransferParam *ftp) } else { uint64_t offset = 0; - size_t chunkCount = ceil(fileSize / chunkSize); + double chunkCount = ceil(double(fileSize) / chunkSize); while (chunkCount--) { ftp->CheckCurrentFile(); -- cgit v1.2.3