aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-12 20:39:15 +0200
committerYang Tse <yangsita@gmail.com>2012-04-12 21:21:08 +0200
commit8c29bf5640709f9b4497a75cf08859a66c46a3d1 (patch)
treedc1ed6b5c29c91f26c0a2bcc3ead65ab445bb3ae /lib/url.c
parent82306ebfba62758ced3441f5481254a7c4edd860 (diff)
url.c: fix compiler warning
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 9ae977e11..a290e3cea 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1115,7 +1115,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
* CURL_REDIR_POST_ALL - POST is kept as POST after 301, 302 and 303
* other - POST is kept as POST after 301 and 302
*/
- long postRedir = va_arg(param, long);
+ int postRedir = curlx_sltosi(va_arg(param, long));
data->set.keep_post = postRedir & CURL_REDIR_POST_ALL;
}
break;