diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-26 01:12:33 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-26 01:12:33 +0000 |
commit | 07dbfa25a096faf730c1e77f19e6466b191b6bd9 (patch) | |
tree | 0a30115bc11df863f1b0a9ea212950ef48fa3ae3 | |
parent | 1d49c04545ae297647ac96cbf3b3acd79c100217 (diff) |
typecast to prevent compiler warning
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |