summaryrefslogtreecommitdiff
path: root/lib/escape.c
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2022-10-28 12:32:09 -0400
committerJay Satiro <raysatiro@yahoo.com>2022-11-08 03:11:01 -0500
commitf151ec6c1053826bdcc740d97257d877b759e777 (patch)
tree6da9daa805268783d6b3fb75dde3cb5007ab4fb9 /lib/escape.c
parent14061f784c47069d20d17dd9d6c6cf4613efeca5 (diff)
downloadcurl-f151ec6c1053826bdcc740d97257d877b759e777.tar.gz
lib: fix some type mismatches and remove unneeded typecasts
Many of these castings are unneeded if we change the variables to work better with each other. Ref: https://github.com/curl/curl/pull/9823 Closes https://github.com/curl/curl/pull/9835
Diffstat (limited to 'lib/escape.c')
-rw-r--r--lib/escape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/escape.c b/lib/escape.c
index da7e5524f..ed59838bd 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -202,7 +202,7 @@ char *curl_easy_unescape(struct Curl_easy *data, const char *string,
char *str = NULL;
(void)data;
if(length >= 0) {
- size_t inputlen = length;
+ size_t inputlen = (size_t)length;
size_t outputlen;
CURLcode res = Curl_urldecode(string, inputlen, &str, &outputlen,
REJECT_NADA);