summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-27 09:03:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-27 09:03:49 +0100
commit5ebb6adef258a2d25e88fe47593f899793f01528 (patch)
tree4a882ee7bdb4c1d647cb8102670dc08604ba8f24
parent0e205518e6f09708e938325e6595fdb7a47a902d (diff)
downloadcurl-bagder/ftp_conn-reduce.tar.gz
fixup typecast to avoid warning?bagder/ftp_conn-reduce
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 83d948687..808ea24a8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2741,7 +2741,7 @@ static CURLcode ftp_statemachine(struct Curl_easy *data,
}
else if(ftpc->count3 < 1) {
ftpc->count3++;
- ftpc->count1 += ftpc->count2; /* get next attempt */
+ ftpc->count1 += (signed char)ftpc->count2; /* get next attempt */
result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s",
ftpauth[ftpc->count1]);
/* remain in this same state */