diff options
author | George Hazan <george.hazan@gmail.com> | 2016-02-23 14:21:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-02-23 14:21:22 +0000 |
commit | 6beffb019a4672a7fb21564764d8e4ccd244720d (patch) | |
tree | dc64a1e8d51642ccae699cdf5779f41de8ba56d1 /plugins/Dropbox/src | |
parent | 6e5e867a1230d0425ac5b69b85cdcdde0abe1045 (diff) |
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16329 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src')
-rw-r--r-- | plugins/Dropbox/src/api/upload.h | 4 | ||||
-rw-r--r-- | plugins/Dropbox/src/dropbox_utils.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/api/upload.h b/plugins/Dropbox/src/api/upload.h index 22125ed66d..e612046ba6 100644 --- a/plugins/Dropbox/src/api/upload.h +++ b/plugins/Dropbox/src/api/upload.h @@ -45,7 +45,7 @@ public: JSONNode root(JSON_NODE);
root
<< JSONNode("session_id", sessionId)
- << JSONNode("offset", offset);
+ << JSONNode("offset", (unsigned long)offset);
json_string params = root.write();
AddHeader("Dropbox-API-Arg", params.c_str());
@@ -67,7 +67,7 @@ public: cursor.set_name("cursor");
cursor
<< JSONNode("session_id", sessionId)
- << JSONNode("offset", offset);
+ << JSONNode("offset", (unsigned long)offset);
JSONNode commit(JSON_NODE);
commit.set_name("commit");
diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index f9e726fe92..fbc48ae395 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -80,7 +80,7 @@ void CDropbox::SendToContact(MCONTACT hContact, const char* data) {
if (hContact == GetDefaultContact()) {
char *message = mir_utf8encode(data);
- AddEventToDb(hContact, EVENTTYPE_MESSAGE, DBEF_UTF, mir_strlen(message), (PBYTE)message);
+ AddEventToDb(hContact, EVENTTYPE_MESSAGE, DBEF_UTF, (DWORD)mir_strlen(message), (PBYTE)message);
return;
}
@@ -100,7 +100,7 @@ void CDropbox::SendToContact(MCONTACT hContact, const char* data) if (CallContactService(hContact, PSS_MESSAGE, 0, (LPARAM)data) != ACKRESULT_FAILED) {
char *message = mir_utf8encode(data);
- AddEventToDb(hContact, EVENTTYPE_MESSAGE, DBEF_UTF | DBEF_SENT, mir_strlen(message), (PBYTE)message);
+ AddEventToDb(hContact, EVENTTYPE_MESSAGE, DBEF_UTF | DBEF_SENT, (DWORD)mir_strlen(message), (PBYTE)message);
}
}
|