aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 02dec225f..50f1dcb4e 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -1838,7 +1838,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
do {
size_t readthisamountnow =
(data->state.resume_from - passed > data->set.buffer_size) ?
- data->set.buffer_size :
+ (size_t)data->set.buffer_size :
curlx_sotouz(data->state.resume_from - passed);
size_t actuallyread =