Skip to content

Commit

Permalink
Add explicit type conversion from std::chrono::milliseconds to long (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Jan 5, 2021
1 parent 1754711 commit c786881
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class HttpOperation

/* wait for the socket to become ready for sending */
sockfd_ = sockextr;
if (!WaitOnSocket(sockfd_, 0, http_conn_timeout_.count()) || is_aborted_)
if (!WaitOnSocket(sockfd_, 0, static_cast<long>(http_conn_timeout_.count())) || is_aborted_)
{
res_ = CURLE_OPERATION_TIMEDOUT;
DispatchEvent(
Expand Down Expand Up @@ -414,8 +414,6 @@ class HttpOperation
// Socket parameters
curl_socket_t sockfd_;

// long sockextr_ = 0;

curl_off_t nread_;
size_t sendlen_ = 0; // # bytes sent by client
size_t acklen_ = 0; // # bytes ack by server
Expand Down

0 comments on commit c786881

Please sign in to comment.