From 07dbfa25a096faf730c1e77f19e6466b191b6bd9 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 26 Oct 2007 01:12:33 +0000 Subject: typecast to prevent compiler warning --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index c87eeaa81..be8bad35f 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1053,7 +1053,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, to mark that postfields is used rather than read function or form data. */ - p = malloc(data->set.postfieldsize? data->set.postfieldsize: 1); + p = malloc((size_t)(data->set.postfieldsize?data->set.postfieldsize:1)); if (!p) result = CURLE_OUT_OF_MEMORY; -- cgit v1.2.3