summaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-20 12:48:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-23 13:38:50 +0200
commit6531c0e85a2bf177339aa751c6652191106884cd (patch)
tree0b6f9bcd59466e29410b16ba9a984181db0c2f90 /lib/sendf.c
parent4c57fdcf87558a95c3ebc4726d21096b53fe812c (diff)
downloadcurl-6531c0e85a2bf177339aa751c6652191106884cd.tar.gz
sendf: store the header type in an usigned char to avoid icc warnings
Closes #9179
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 52788fd5f..62cfd3524 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -589,12 +589,12 @@ static CURLcode chop_write(struct Curl_easy *data,
/* HTTP header, but not status-line */
if((conn->handler->protocol & PROTO_FAMILY_HTTP) &&
(type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS) ) {
- CURLcode result =
- Curl_headers_push(data, optr,
- type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
- (type & CLIENTWRITE_1XX ? CURLH_1XX :
- (type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
- CURLH_HEADER)));
+ unsigned char htype = (unsigned char)
+ (type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
+ (type & CLIENTWRITE_1XX ? CURLH_1XX :
+ (type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
+ CURLH_HEADER)));
+ CURLcode result = Curl_headers_push(data, optr, htype);
if(result)
return result;
}