mirror of
https://github.com/curl/curl.git
synced 2026-07-05 04:57:17 +03:00
formdata: typecast the va_arg return value
To avoid "enumerated type mixed with another type" warnings
Follow-up from 0f52dd5fd5
Closes #9499
This commit is contained in:
parent
3bbe75095f
commit
fd840cdead
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
|
|||
/* 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 = va_arg(params, int);
|
||||
option = (CURLformoption)va_arg(params, int);
|
||||
if(CURLFORM_END == option)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue