From 8c29bf5640709f9b4497a75cf08859a66c46a3d1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 12 Apr 2012 20:39:15 +0200 Subject: url.c: fix compiler warning --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3