Skip to content

Commit

Permalink
lib: silence conversion warnings
Browse files Browse the repository at this point in the history
Closes #4444
  • Loading branch information
MarcelRaad committed Oct 1, 2019
1 parent 68b0aac commit 69d95b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hostip.c
Expand Up @@ -749,7 +749,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
conn->created) / 1000;

/* the alarm period is counted in even number of seconds */
unsigned long alarm_set = prev_alarm - elapsed_secs;
unsigned long alarm_set = (unsigned long)(prev_alarm - elapsed_secs);

if(!alarm_set ||
((alarm_set >= 0x80000000) && (prev_alarm < 0x80000000)) ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/vssh/libssh2.c
Expand Up @@ -2822,7 +2822,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
fd_write = sock;
/* wait for the socket to become ready */
(void)Curl_socket_check(fd_read, CURL_SOCKET_BAD, fd_write,
left>1000?1000:left); /* ignore result */
left>1000?1000:(time_t)left);
}
#endif

Expand Down

0 comments on commit 69d95b6

Please sign in to comment.