Skip to content

Commit

Permalink
Fix narrowing conversion warnings on Windows. (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal authored Oct 9, 2018
1 parent 948b70b commit b211145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Release/src/http/client/http_client_winhttp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ class winhttp_client final : public _http_client_communicator
else if (length > p_request_context->m_remaining_to_write)
{
// The stream grew, but we won't
length = p_request_context->m_remaining_to_write;
length = static_cast<size_t>(p_request_context->m_remaining_to_write);
}

do_compress(pplx::task_from_result<size_t>(length)).then(after_read);
Expand Down
2 changes: 1 addition & 1 deletion Release/src/http/common/http_msg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ size_t http_msg_base::_get_stream_length()
auto offset = stream.tell();
auto end = stream.seek(0, std::ios_base::end);
stream.seek(offset);
return static_cast<utility::size64_t>(end - offset);
return static_cast<size_t>(end - offset);
}

return std::numeric_limits<size_t>::max();
Expand Down

0 comments on commit b211145

Please sign in to comment.