aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/dropbox/dropboxuploadrequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud/dropbox/dropboxuploadrequest.cpp')
-rw-r--r--backends/cloud/dropbox/dropboxuploadrequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/cloud/dropbox/dropboxuploadrequest.cpp b/backends/cloud/dropbox/dropboxuploadrequest.cpp
index 50a1b8a612..bf8e43d7cb 100644
--- a/backends/cloud/dropbox/dropboxuploadrequest.cpp
+++ b/backends/cloud/dropbox/dropboxuploadrequest.cpp
@@ -79,7 +79,7 @@ void DropboxUploadRequest::uploadNextPart() {
url += "finish";
Common::JSONObject jsonCursor, jsonCommit;
jsonCursor.setVal("session_id", new Common::JSONValue(_sessionId));
- jsonCursor.setVal("offset", new Common::JSONValue(_contentsStream->pos()));
+ jsonCursor.setVal("offset", new Common::JSONValue((long long int)_contentsStream->pos()));
jsonCommit.setVal("path", new Common::JSONValue(_savePath));
jsonCommit.setVal("mode", new Common::JSONValue("overwrite"));
jsonCommit.setVal("autorename", new Common::JSONValue(false));
@@ -90,7 +90,7 @@ void DropboxUploadRequest::uploadNextPart() {
url += "append_v2";
Common::JSONObject jsonCursor;
jsonCursor.setVal("session_id", new Common::JSONValue(_sessionId));
- jsonCursor.setVal("offset", new Common::JSONValue(_contentsStream->pos()));
+ jsonCursor.setVal("offset", new Common::JSONValue((long long int)_contentsStream->pos()));
jsonRequestParameters.setVal("cursor", new Common::JSONValue(jsonCursor));
jsonRequestParameters.setVal("close", new Common::JSONValue(false));
}