pingpong: fix compiler warning "assigning an enum to unsigned char"
Closes #11050
This commit is contained in:
parent
2541231639
commit
b0edf0b7da
@ -211,7 +211,7 @@ CURLcode Curl_pp_vsendf(struct Curl_easy *data,
|
||||
#ifdef HAVE_GSSAPI
|
||||
data_sec = conn->data_prot;
|
||||
DEBUGASSERT(data_sec > PROT_NONE && data_sec < PROT_LAST);
|
||||
conn->data_prot = data_sec;
|
||||
conn->data_prot = (unsigned char)data_sec;
|
||||
#endif
|
||||
|
||||
Curl_debug(data, CURLINFO_HEADER_OUT, s, (size_t)bytes_written);
|
||||
@ -316,7 +316,7 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data,
|
||||
&gotbytes);
|
||||
#ifdef HAVE_GSSAPI
|
||||
DEBUGASSERT(prot > PROT_NONE && prot < PROT_LAST);
|
||||
conn->data_prot = prot;
|
||||
conn->data_prot = (unsigned char)prot;
|
||||
#endif
|
||||
if(result == CURLE_AGAIN)
|
||||
return CURLE_OK; /* return */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user