diff options
Diffstat (limited to 'libs/libcurl/src/formdata.c')
-rw-r--r-- | libs/libcurl/src/formdata.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/libcurl/src/formdata.c b/libs/libcurl/src/formdata.c index f5ed3653df..46542b4329 100644 --- a/libs/libcurl/src/formdata.c +++ b/libs/libcurl/src/formdata.c @@ -251,8 +251,10 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost, } } else { - /* This is not array-state, get next option */ - option = va_arg(params, CURLformoption); + /* This is not array-state, get next option. This gets an 'int' with + va_arg() because CURLformoption might be a smaller type than int and + might cause compiler warnings and wrong behavior. */ + option = (CURLformoption)va_arg(params, int); if(CURLFORM_END == option) break; } |