aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index d0dd2c746..334e4b848 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2983,7 +2983,7 @@ static ssize_t scp_send(struct connectdata *conn, int sockindex,
nwrite = 0;
}
else if(nwrite < LIBSSH2_ERROR_NONE) {
- *err = libssh2_session_error_to_CURLE(nwrite);
+ *err = libssh2_session_error_to_CURLE((int)nwrite);
nwrite = -1;
}
@@ -3131,7 +3131,7 @@ static ssize_t sftp_send(struct connectdata *conn, int sockindex,
nwrite = 0;
}
else if(nwrite < LIBSSH2_ERROR_NONE) {
- *err = libssh2_session_error_to_CURLE(nwrite);
+ *err = libssh2_session_error_to_CURLE((int)nwrite);
nwrite = -1;
}