mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits
This commit is contained in:
parent
e8d3710aff
commit
5c8fc7dce9
@ -266,8 +266,8 @@ int ares_save_options(ares_channel channel, struct ares_options *options,
|
||||
options->timeout = channel->timeout;
|
||||
options->tries = channel->tries;
|
||||
options->ndots = channel->ndots;
|
||||
options->udp_port = channel->udp_port;
|
||||
options->tcp_port = channel->tcp_port;
|
||||
options->udp_port = (unsigned short)channel->udp_port;
|
||||
options->tcp_port = (unsigned short)channel->tcp_port;
|
||||
options->sock_state_cb = channel->sock_state_cb;
|
||||
options->sock_state_cb_data = channel->sock_state_cb_data;
|
||||
|
||||
|
@ -255,7 +255,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
||||
tvp = ares_timeout(data->state.areschannel, &store, &tv);
|
||||
|
||||
/* use the timeout period ares returned to us above */
|
||||
ares_waitperform(conn, tvp->tv_sec * 1000 + tvp->tv_usec/1000);
|
||||
ares_waitperform(conn, (int)(tvp->tv_sec * 1000 + tvp->tv_usec/1000));
|
||||
|
||||
if(conn->async.done)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user