Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/drtimcooper/XmlRpc4Win.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2016-01-14 01:16:03 +0300
committerUnderground78 <underground78@users.sourceforge.net>2016-01-18 00:14:20 +0300
commit633def97031ddc4820b905444a7de03172742835 (patch)
treefd418f26fb9abb0dff085a900aabee952f2e8314
parent922a73ea980f5231be5ef360ee67ff38560373f9 (diff)
Silence some C4267 warnings (conversion from size_t to DWORD).
-rw-r--r--TimXmlRpc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TimXmlRpc.cpp b/TimXmlRpc.cpp
index 1b304d0..c57eaf6 100644
--- a/TimXmlRpc.cpp
+++ b/TimXmlRpc.cpp
@@ -1539,10 +1539,10 @@ RETRY:
// Add the 'Content-Type' && 'Content-length' headers
char header[255]; // Thanks, Anthony Chan.
sprintf_s(header, "Content-Type: text/xml\r\nContent-length: %d", ostr.str().size());
- HttpAddRequestHeaders(hHttpFile, header, strlen(header), HTTP_ADDREQ_FLAG_ADD);
+ HttpAddRequestHeaders(hHttpFile, header, (DWORD)strlen(header), HTTP_ADDREQ_FLAG_ADD);
// Send the request:
- if (! HttpSendRequest(hHttpFile, NULL, 0, (LPVOID)ostr.str().c_str(), ostr.str().size())) {
+ if (! HttpSendRequest(hHttpFile, NULL, 0, (LPVOID)ostr.str().c_str(), (DWORD)ostr.str().size())) {
hadError("HttpSendRequest");
return false;
}