]> granicus.if.org Git - curl/commitdiff
ssh: fix compiler warning from e40e9d7f0de
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 May 2017 06:32:04 +0000 (08:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 May 2017 06:32:04 +0000 (08:32 +0200)
lib/ssh.c

index 02dec225fda77a647f8c078192f0d402ca3e5825..50f1dcb4ecc6debaea22b2b77746e9cf1604cffa 100644 (file)
--- 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 =