diff options
author | Underground78 <underground78@users.sourceforge.net> | 2016-01-14 01:16:03 +0300 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2016-01-18 00:14:20 +0300 |
commit | 633def97031ddc4820b905444a7de03172742835 (patch) | |
tree | fd418f26fb9abb0dff085a900aabee952f2e8314 | |
parent | 922a73ea980f5231be5ef360ee67ff38560373f9 (diff) |
Silence some C4267 warnings (conversion from size_t to DWORD).
-rw-r--r-- | TimXmlRpc.cpp | 4 |
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; } |