pingpong: fix compiler warning "assigning an enum to unsigned char"

Closes #11050
This commit is contained in:
Stefan Eissing 2023-04-28 09:24:24 +02:00 committed by Daniel Stenberg
parent 2541231639
commit b0edf0b7da
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */