summaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-05-02 08:32:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-02 08:32:04 +0200
commiteab6732fde094073480af5039b6fb495cbc3fb8a (patch)
treee0cebe3f085e38708419c6e826f754d573e7466b /lib/ssh.c
parent4858c451ee54d0104f68408debb3a32947b7b273 (diff)
downloadcurl-eab6732fde094073480af5039b6fb495cbc3fb8a.tar.gz
ssh: fix compiler warning from e40e9d7f0de
Diffstat (limited to 'lib/ssh.c')
-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 =